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

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

Issue 350943003: Support global keyboard commands on Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Formatting. Created 6 years, 5 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
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 NULL, 21 NULL,
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)
29 FeatureSwitch::DEFAULT_DISABLED),
30 #else
31 FeatureSwitch::DEFAULT_ENABLED), 28 FeatureSwitch::DEFAULT_ENABLED),
32 #endif
Finnur 2014/06/26 10:37:35 Actually, there's no point in keeping this around
David Tseng 2014/06/27 00:49:11 I wasn't sure if it was needed to (sometimes) disa
33 prompt_for_external_extensions( 29 prompt_for_external_extensions(
34 NULL, 30 NULL,
35 #if defined(OS_WIN) 31 #if defined(OS_WIN)
36 FeatureSwitch::DEFAULT_ENABLED), 32 FeatureSwitch::DEFAULT_ENABLED),
37 #else 33 #else
38 FeatureSwitch::DEFAULT_DISABLED), 34 FeatureSwitch::DEFAULT_DISABLED),
39 #endif 35 #endif
40 error_console( 36 error_console(
41 switches::kErrorConsole, 37 switches::kErrorConsole,
42 FeatureSwitch::DEFAULT_DISABLED), 38 FeatureSwitch::DEFAULT_DISABLED),
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 156
161 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { 157 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) {
162 override_value_ = override_value; 158 override_value_ = override_value;
163 } 159 }
164 160
165 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { 161 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const {
166 return override_value_; 162 return override_value_;
167 } 163 }
168 164
169 } // namespace extensions 165 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698