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

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

Issue 564993002: Embedded Extension Options: remove flags and trunk channel restrictions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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
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 #ifndef EXTENSIONS_COMMON_FEATURE_SWITCH_H_ 5 #ifndef EXTENSIONS_COMMON_FEATURE_SWITCH_H_
6 #define EXTENSIONS_COMMON_FEATURE_SWITCH_H_ 6 #define EXTENSIONS_COMMON_FEATURE_SWITCH_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 namespace base { 12 namespace base {
13 class CommandLine; 13 class CommandLine;
14 } 14 }
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 // A switch that can turn a feature on or off. Typically controlled via 18 // A switch that can turn a feature on or off. Typically controlled via
19 // command-line switches but can be overridden, e.g., for testing. 19 // command-line switches but can be overridden, e.g., for testing.
20 class FeatureSwitch { 20 class FeatureSwitch {
21 public: 21 public:
22 static FeatureSwitch* easy_off_store_install(); 22 static FeatureSwitch* easy_off_store_install();
23 static FeatureSwitch* force_dev_mode_highlighting(); 23 static FeatureSwitch* force_dev_mode_highlighting();
24 static FeatureSwitch* prompt_for_external_extensions(); 24 static FeatureSwitch* prompt_for_external_extensions();
25 static FeatureSwitch* error_console(); 25 static FeatureSwitch* error_console();
26 static FeatureSwitch* enable_override_bookmarks_ui(); 26 static FeatureSwitch* enable_override_bookmarks_ui();
27 static FeatureSwitch* extension_action_redesign(); 27 static FeatureSwitch* extension_action_redesign();
28 static FeatureSwitch* scripts_require_action(); 28 static FeatureSwitch* scripts_require_action();
29 static FeatureSwitch* embedded_extension_options();
30 static FeatureSwitch* app_view(); 29 static FeatureSwitch* app_view();
31 static FeatureSwitch* mime_handler_view(); 30 static FeatureSwitch* mime_handler_view();
32 31
33 enum DefaultValue { 32 enum DefaultValue {
34 DEFAULT_ENABLED, 33 DEFAULT_ENABLED,
35 DEFAULT_DISABLED 34 DEFAULT_DISABLED
36 }; 35 };
37 36
38 enum OverrideValue { 37 enum OverrideValue {
39 OVERRIDE_NONE, 38 OVERRIDE_NONE,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const char* switch_name_; 77 const char* switch_name_;
79 bool default_value_; 78 bool default_value_;
80 OverrideValue override_value_; 79 OverrideValue override_value_;
81 80
82 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); 81 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch);
83 }; 82 };
84 83
85 } // namespace extensions 84 } // namespace extensions
86 85
87 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_ 86 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/extension_options/extension_options_guest.cc ('k') | extensions/common/feature_switch.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698