Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1944)

Unified Diff: chrome/browser/extensions/error_console/error_console.cc

Issue 215623002: Enable Error Console for ADT and <= Dev Channel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/error_console/error_console.cc
diff --git a/chrome/browser/extensions/error_console/error_console.cc b/chrome/browser/extensions/error_console/error_console.cc
index 9fc50894cca3c21d190f7e69ac3749fe500e5408..048fe2196fddcb97c55f9b8149a70f3d76e358ae 100644
--- a/chrome/browser/extensions/error_console/error_console.cc
+++ b/chrome/browser/extensions/error_console/error_console.cc
@@ -24,7 +24,6 @@
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_set.h"
-#include "extensions/common/feature_switch.h"
namespace extensions {
@@ -49,12 +48,6 @@ ErrorConsole::ErrorConsole(Profile* profile,
return;
#endif
- // If we don't have the necessary FeatureSwitch enabled, then return
- // immediately. Since we never register for any notifications, this ensures
- // the ErrorConsole will never be enabled.
- if (!FeatureSwitch::error_console()->IsEnabled())
- return;
-
pref_registrar_.Init(profile_->GetPrefs());
pref_registrar_.Add(prefs::kExtensionsUIDeveloperMode,
base::Bind(&ErrorConsole::OnPrefChanged,

Powered by Google App Engine
This is Rietveld 408576698