diff --git a/atom/browser/api/atom_api_window.cc b/atom/browser/api/atom_api_window.cc index ad551a79e32..5dfd57736bb 100644 --- a/atom/browser/api/atom_api_window.cc +++ b/atom/browser/api/atom_api_window.cc @@ -83,10 +83,6 @@ Window::Window(v8::Isolate* isolate, v8::Local wrapper, v8::Local transparent; if (options.Get("transparent", &transparent)) web_preferences.Set("transparent", transparent); - - // Disable WebContents.OpenDevTools() ? - if (options.Get(options::kDisableDevTools, &value)) - web_preferences.Set(options::kDisableDevTools, value); // Creates the WebContents used by BrowserWindow. auto web_contents = WebContents::Create(isolate, web_preferences); diff --git a/atom/common/options_switches.cc b/atom/common/options_switches.cc index 8c229e08707..6b514599f08 100644 --- a/atom/common/options_switches.cc +++ b/atom/common/options_switches.cc @@ -96,9 +96,6 @@ const char kNodeIntegration[] = "nodeIntegration"; // Instancd ID of guest WebContents. const char kGuestInstanceID[] = "guestInstanceId"; -// Diable openDevTools. -const char kDisableDevTools[] = "disableDevTools"; - // Web runtime features. const char kExperimentalFeatures[] = "experimentalFeatures"; const char kExperimentalCanvasFeatures[] = "experimentalCanvasFeatures"; diff --git a/atom/common/options_switches.h b/atom/common/options_switches.h index 1c0ae9e6b0f..54c63877288 100644 --- a/atom/common/options_switches.h +++ b/atom/common/options_switches.h @@ -46,7 +46,6 @@ extern const char kBackgroundColor[]; extern const char kHasShadow[]; extern const char kFocusable[]; extern const char kWebPreferences[]; -extern const char kDisableDevTools[]; // WebPreferences. extern const char kZoomFactor[];