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

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

Issue 11038021: Implement Chrome Extension TabCapture API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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') | chrome/common/extensions/permissions/api_permission.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 e3c15788e7822d308aa56c4e851727e2629d3c83..9dd06e338b7f0c79c01f3c2be38b4076ea32194e 100644
--- a/chrome/common/extensions/feature_switch.cc
+++ b/chrome/common/extensions/feature_switch.cc
@@ -36,6 +36,9 @@ class CommonSwitches {
FeatureSwitch::DEFAULT_DISABLED),
prompt_for_external_extensions(
switches::kPromptForExternalExtensions,
+ FeatureSwitch::DEFAULT_ENABLED),
+ tab_capture(
+ switches::kTabCapture,
FeatureSwitch::DEFAULT_DISABLED)
{
// Disabling easy off-store installation is not yet implemented for Aura. Not
@@ -57,6 +60,7 @@ class CommonSwitches {
FeatureSwitch script_bubble;
FeatureSwitch sideload_wipeout;
FeatureSwitch prompt_for_external_extensions;
+ FeatureSwitch tab_capture;
};
base::LazyInstance<CommonSwitches> g_common_switches =
@@ -86,6 +90,9 @@ FeatureSwitch* FeatureSwitch::sideload_wipeout() {
FeatureSwitch* FeatureSwitch::prompt_for_external_extensions() {
return &g_common_switches.Get().prompt_for_external_extensions;
}
+FeatureSwitch* FeatureSwitch::tab_capture() {
+ return &g_common_switches.Get().tab_capture;
+}
FeatureSwitch::ScopedOverride::ScopedOverride(FeatureSwitch* feature,
« no previous file with comments | « chrome/common/extensions/feature_switch.h ('k') | chrome/common/extensions/permissions/api_permission.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698