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

Unified Diff: extensions/common/feature_switch.cc

Issue 657023008: Add a new field "source" in launchData of chrome.app.runtime.onLaunched() to trace launch source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 6 years, 1 month 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 | « extensions/common/feature_switch.h ('k') | extensions/common/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/feature_switch.cc
diff --git a/extensions/common/feature_switch.cc b/extensions/common/feature_switch.cc
index 7020724583da777f38d97aaf0340361d58297c72..65e145683b008738e050c45a2a0aa0d4dc30f710 100644
--- a/extensions/common/feature_switch.cc
+++ b/extensions/common/feature_switch.cc
@@ -17,35 +17,29 @@ namespace {
class CommonSwitches {
public:
CommonSwitches()
- : easy_off_store_install(
- NULL,
- FeatureSwitch::DEFAULT_DISABLED),
- force_dev_mode_highlighting(
- switches::kForceDevModeHighlighting,
- FeatureSwitch::DEFAULT_DISABLED),
- prompt_for_external_extensions(
- NULL,
+ : easy_off_store_install(NULL, FeatureSwitch::DEFAULT_DISABLED),
+ force_dev_mode_highlighting(switches::kForceDevModeHighlighting,
+ FeatureSwitch::DEFAULT_DISABLED),
+ prompt_for_external_extensions(NULL,
#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),
- enable_override_bookmarks_ui(
- switches::kEnableOverrideBookmarksUI,
- FeatureSwitch::DEFAULT_DISABLED),
- extension_action_redesign(
- switches::kExtensionActionRedesign,
- FeatureSwitch::DEFAULT_DISABLED),
+ error_console(switches::kErrorConsole, FeatureSwitch::DEFAULT_DISABLED),
+ enable_override_bookmarks_ui(switches::kEnableOverrideBookmarksUI,
+ FeatureSwitch::DEFAULT_DISABLED),
+ extension_action_redesign(switches::kExtensionActionRedesign,
+ FeatureSwitch::DEFAULT_DISABLED),
scripts_require_action(switches::kScriptsRequireAction,
FeatureSwitch::DEFAULT_DISABLED),
- embedded_extension_options(
- switches::kEmbeddedExtensionOptions,
- FeatureSwitch::DEFAULT_DISABLED),
+ embedded_extension_options(switches::kEmbeddedExtensionOptions,
+ FeatureSwitch::DEFAULT_DISABLED),
mime_handler_view(switches::kMimeHandlerView,
- FeatureSwitch::DEFAULT_DISABLED) {}
+ FeatureSwitch::DEFAULT_DISABLED),
+ trace_app_source(switches::kTraceAppSource,
+ FeatureSwitch::DEFAULT_DISABLED) {
+ }
// Enables extensions to be easily installed from sites other than the web
// store.
@@ -63,6 +57,7 @@ class CommonSwitches {
FeatureSwitch scripts_require_action;
FeatureSwitch embedded_extension_options;
FeatureSwitch mime_handler_view;
+ FeatureSwitch trace_app_source;
};
base::LazyInstance<CommonSwitches> g_common_switches =
@@ -97,6 +92,9 @@ FeatureSwitch* FeatureSwitch::embedded_extension_options() {
FeatureSwitch* FeatureSwitch::mime_handler_view() {
return &g_common_switches.Get().mime_handler_view;
}
+FeatureSwitch* FeatureSwitch::trace_app_source() {
+ return &g_common_switches.Get().trace_app_source;
+}
FeatureSwitch::ScopedOverride::ScopedOverride(FeatureSwitch* feature,
bool override_value)
« no previous file with comments | « extensions/common/feature_switch.h ('k') | extensions/common/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698