initialize disable_devtools_
This commit is contained in:
parent
1f1180f857
commit
19f6811312
1 changed files with 4 additions and 2 deletions
|
@ -261,7 +261,8 @@ WebContents::WebContents(v8::Isolate* isolate,
|
||||||
embedder_(nullptr),
|
embedder_(nullptr),
|
||||||
type_(REMOTE),
|
type_(REMOTE),
|
||||||
request_id_(0),
|
request_id_(0),
|
||||||
background_throttling_(true) {
|
background_throttling_(true),
|
||||||
|
disable_devtools_(false) {
|
||||||
web_contents->SetUserAgentOverride(GetBrowserContext()->GetUserAgent());
|
web_contents->SetUserAgentOverride(GetBrowserContext()->GetUserAgent());
|
||||||
|
|
||||||
Init(isolate);
|
Init(isolate);
|
||||||
|
@ -273,7 +274,8 @@ WebContents::WebContents(v8::Isolate* isolate,
|
||||||
: embedder_(nullptr),
|
: embedder_(nullptr),
|
||||||
type_(BROWSER_WINDOW),
|
type_(BROWSER_WINDOW),
|
||||||
request_id_(0),
|
request_id_(0),
|
||||||
background_throttling_(true) {
|
background_throttling_(true),
|
||||||
|
disable_devtools_(false) {
|
||||||
// Read options.
|
// Read options.
|
||||||
options.Get("backgroundThrottling", &background_throttling_);
|
options.Get("backgroundThrottling", &background_throttling_);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue