Use webContents BrowserContext.

Also fix some code styles.
This commit is contained in:
Haojian Wu 2015-06-18 18:38:32 +08:00
parent 99bfc9b7f5
commit 969916442f
6 changed files with 78 additions and 66 deletions

View file

@ -587,7 +587,7 @@ void WebContents::InspectServiceWorker() {
v8::Local<v8::Value> WebContents::Session(v8::Isolate* isolate) {
if (session_.IsEmpty()) {
auto handle = Session::Create(isolate);
auto handle = Session::Create(isolate, web_contents());
session_.Reset(isolate, handle.ToV8());
}
return v8::Local<v8::Value>::New(isolate, session_);