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

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

Issue 11299344: Turn on Sideload Warning UI (Windows only) to gather more data (leaving Sideload Wipeout off). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | « no previous file | 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/extensions/feature_switch.h" 5 #include "chrome/common/extensions/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/string_util.h" 10 #include "base/string_util.h"
(...skipping 23 matching lines...) Expand all
34 #if !defined(OS_MACOSX) 34 #if !defined(OS_MACOSX)
35 FeatureSwitch::DEFAULT_ENABLED), 35 FeatureSwitch::DEFAULT_ENABLED),
36 #else 36 #else
37 FeatureSwitch::DEFAULT_DISABLED), 37 FeatureSwitch::DEFAULT_DISABLED),
38 #endif 38 #endif
39 sideload_wipeout( 39 sideload_wipeout(
40 switches::kSideloadWipeout, 40 switches::kSideloadWipeout,
41 FeatureSwitch::DEFAULT_DISABLED), 41 FeatureSwitch::DEFAULT_DISABLED),
42 prompt_for_external_extensions( 42 prompt_for_external_extensions(
43 switches::kPromptForExternalExtensions, 43 switches::kPromptForExternalExtensions,
44 #if defined(OS_WIN)
45 FeatureSwitch::DEFAULT_ENABLED),
46 #else
44 FeatureSwitch::DEFAULT_DISABLED), 47 FeatureSwitch::DEFAULT_DISABLED),
48 #endif
45 tab_capture( 49 tab_capture(
46 switches::kTabCapture, 50 switches::kTabCapture,
47 FeatureSwitch::DEFAULT_ENABLED) 51 FeatureSwitch::DEFAULT_ENABLED)
48 { 52 {
49 if (!action_box.IsEnabled()){ 53 if (!action_box.IsEnabled()){
50 extensions_in_action_box.SetOverrideValue( 54 extensions_in_action_box.SetOverrideValue(
51 FeatureSwitch::OVERRIDE_DISABLED); 55 FeatureSwitch::OVERRIDE_DISABLED);
52 } 56 }
53 } 57 }
54 58
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 163
160 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) { 164 void FeatureSwitch::SetOverrideValue(OverrideValue override_value) {
161 override_value_ = override_value; 165 override_value_ = override_value;
162 } 166 }
163 167
164 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const { 168 FeatureSwitch::OverrideValue FeatureSwitch::GetOverrideValue() const {
165 return override_value_; 169 return override_value_;
166 } 170 }
167 171
168 } // namespace extensions 172 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698