initialize disable_devtools_

This commit is contained in:
minggo 2016-09-06 11:08:50 +08:00
parent 1f1180f857
commit 19f6811312

View file

@ -261,7 +261,8 @@ WebContents::WebContents(v8::Isolate* isolate,
embedder_(nullptr),
type_(REMOTE),
request_id_(0),
background_throttling_(true) {
background_throttling_(true),
disable_devtools_(false) {
web_contents->SetUserAgentOverride(GetBrowserContext()->GetUserAgent());
Init(isolate);
@ -273,7 +274,8 @@ WebContents::WebContents(v8::Isolate* isolate,
: embedder_(nullptr),
type_(BROWSER_WINDOW),
request_id_(0),
background_throttling_(true) {
background_throttling_(true),
disable_devtools_(false) {
// Read options.
options.Get("backgroundThrottling", &background_throttling_);