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

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

Issue 1415333002: [Media Router] Add experiment control logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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"
(...skipping 21 matching lines...) Expand all
32 class FeatureSwitch { 32 class FeatureSwitch {
33 public: 33 public:
34 static FeatureSwitch* easy_off_store_install(); 34 static FeatureSwitch* easy_off_store_install();
35 static FeatureSwitch* force_dev_mode_highlighting(); 35 static FeatureSwitch* force_dev_mode_highlighting();
36 static FeatureSwitch* prompt_for_external_extensions(); 36 static FeatureSwitch* prompt_for_external_extensions();
37 static FeatureSwitch* error_console(); 37 static FeatureSwitch* error_console();
38 static FeatureSwitch* enable_override_bookmarks_ui(); 38 static FeatureSwitch* enable_override_bookmarks_ui();
39 static FeatureSwitch* extension_action_redesign(); 39 static FeatureSwitch* extension_action_redesign();
40 static FeatureSwitch* scripts_require_action(); 40 static FeatureSwitch* scripts_require_action();
41 static FeatureSwitch* embedded_extension_options(); 41 static FeatureSwitch* embedded_extension_options();
42 #if defined(ENABLE_MEDIA_ROUTER)
msw 2015/10/23 20:18:43 It's unfortunate to add so many #if define blocks;
imcheng 2015/10/23 21:39:27 I agree. But it helps to minimize the unnecessary
43 static FeatureSwitch* media_router();
msw 2015/10/23 20:18:43 nit: order after non-compile-time-switched entries
imcheng 2015/10/23 21:39:27 The formatting gets a bit tricky with it being the
msw 2015/10/23 22:30:49 Acknowledged.
44 #endif
42 static FeatureSwitch* trace_app_source(); 45 static FeatureSwitch* trace_app_source();
43 46
44 enum DefaultValue { 47 enum DefaultValue {
45 DEFAULT_ENABLED, 48 DEFAULT_ENABLED,
46 DEFAULT_DISABLED 49 DEFAULT_DISABLED
47 }; 50 };
48 51
49 enum OverrideValue { 52 enum OverrideValue {
50 OVERRIDE_NONE, 53 OVERRIDE_NONE,
51 OVERRIDE_ENABLED, 54 OVERRIDE_ENABLED,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 const char* field_trial_name_; 96 const char* field_trial_name_;
94 bool default_value_; 97 bool default_value_;
95 OverrideValue override_value_; 98 OverrideValue override_value_;
96 99
97 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch); 100 DISALLOW_COPY_AND_ASSIGN(FeatureSwitch);
98 }; 101 };
99 102
100 } // namespace extensions 103 } // namespace extensions
101 104
102 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_ 105 #endif // EXTENSIONS_COMMON_FEATURE_SWITCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698