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

Unified Diff: chrome/common/extensions/feature_switch.cc

Issue 23311011: ErrorConsole Switch, Duplicate Error Detection, Dev Mode Check (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable ErrorConsole for Android Created 7 years, 4 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
« no previous file with comments | « chrome/common/extensions/feature_switch.h ('k') | extensions/browser/extension_error.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/feature_switch.cc
diff --git a/chrome/common/extensions/feature_switch.cc b/chrome/common/extensions/feature_switch.cc
index 860c78239a79b067aba33ea90b86ab4433d97380..a082b1a559193dff824e30b90a93e9b75592096f 100644
--- a/chrome/common/extensions/feature_switch.cc
+++ b/chrome/common/extensions/feature_switch.cc
@@ -9,6 +9,7 @@
#include "base/metrics/field_trial.h"
#include "base/strings/string_util.h"
#include "chrome/common/chrome_switches.h"
+#include "extensions/common/switches.h"
namespace extensions {
@@ -18,26 +19,30 @@ class CommonSwitches {
public:
CommonSwitches()
: easy_off_store_install(
- switches::kEasyOffStoreExtensionInstall,
+ ::switches::kEasyOffStoreExtensionInstall,
FeatureSwitch::DEFAULT_DISABLED),
script_badges(
- switches::kScriptBadges,
+ ::switches::kScriptBadges,
FeatureSwitch::DEFAULT_DISABLED),
script_bubble(
- switches::kScriptBubble,
+ ::switches::kScriptBubble,
FeatureSwitch::DEFAULT_DISABLED),
prompt_for_external_extensions(
- switches::kPromptForExternalExtensions,
+ ::switches::kPromptForExternalExtensions,
#if defined(OS_WIN)
- FeatureSwitch::DEFAULT_ENABLED) {}
+ FeatureSwitch::DEFAULT_ENABLED),
#else
- FeatureSwitch::DEFAULT_DISABLED) {}
+ FeatureSwitch::DEFAULT_DISABLED),
#endif
+ error_console(
+ switches::kErrorConsole,
+ FeatureSwitch::DEFAULT_DISABLED) {}
FeatureSwitch easy_off_store_install;
FeatureSwitch script_badges;
FeatureSwitch script_bubble;
FeatureSwitch prompt_for_external_extensions;
+ FeatureSwitch error_console;
};
base::LazyInstance<CommonSwitches> g_common_switches =
@@ -57,6 +62,9 @@ FeatureSwitch* FeatureSwitch::script_bubble() {
FeatureSwitch* FeatureSwitch::prompt_for_external_extensions() {
return &g_common_switches.Get().prompt_for_external_extensions;
}
+FeatureSwitch* FeatureSwitch::error_console() {
+ return &g_common_switches.Get().error_console;
+}
FeatureSwitch::ScopedOverride::ScopedOverride(FeatureSwitch* feature,
bool override_value)
« no previous file with comments | « chrome/common/extensions/feature_switch.h ('k') | extensions/browser/extension_error.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698