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

Side by Side Diff: extensions/common/feature_switch.cc

Issue 197783005: Enable the Commands API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/extensions/docs/templates/intros/commands.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/common/feature_switch.h" 5 #include "extensions/common/feature_switch.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "extensions/common/switches.h" 11 #include "extensions/common/switches.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 namespace { 15 namespace {
16 16
17 class CommonSwitches { 17 class CommonSwitches {
18 public: 18 public:
19 CommonSwitches() 19 CommonSwitches()
20 : easy_off_store_install( 20 : easy_off_store_install(
21 switches::kEasyOffStoreExtensionInstall, 21 switches::kEasyOffStoreExtensionInstall,
22 FeatureSwitch::DEFAULT_DISABLED), 22 FeatureSwitch::DEFAULT_DISABLED),
23 force_dev_mode_highlighting( 23 force_dev_mode_highlighting(
24 switches::kForceDevModeHighlighting, 24 switches::kForceDevModeHighlighting,
25 FeatureSwitch::DEFAULT_DISABLED), 25 FeatureSwitch::DEFAULT_DISABLED),
26 global_commands( 26 global_commands(
27 switches::kGlobalCommands, 27 switches::kGlobalCommands,
28 #if defined(OS_CHROMEOS)
28 FeatureSwitch::DEFAULT_DISABLED), 29 FeatureSwitch::DEFAULT_DISABLED),
30 #else
31 FeatureSwitch::DEFAULT_ENABLED),
32 #endif
29 prompt_for_external_extensions( 33 prompt_for_external_extensions(
30 NULL, 34 NULL,
31 #if defined(OS_WIN) 35 #if defined(OS_WIN)
32 FeatureSwitch::DEFAULT_ENABLED), 36 FeatureSwitch::DEFAULT_ENABLED),
33 #else 37 #else
34 FeatureSwitch::DEFAULT_DISABLED), 38 FeatureSwitch::DEFAULT_DISABLED),
35 #endif 39 #endif
36 error_console( 40 error_console(
37 switches::kErrorConsole, 41 switches::kErrorConsole,
38 FeatureSwitch::DEFAULT_DISABLED), 42 FeatureSwitch::DEFAULT_DISABLED),
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 146
143 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { 147 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) {
144 override_value_ = override_value; 148 override_value_ = override_value;
145 } 149 }
146 150
147 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { 151 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const {
148 return override_value_; 152 return override_value_;
149 } 153 }
150 154
151 } // namespace extensions 155 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/templates/intros/commands.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698