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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 11264053: Added switch to guard all autofill new elements work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added flag to experiments for autofill new elements. Created 8 years, 1 month 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 (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/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 kOsAll, 1021 kOsAll,
1022 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics) 1022 SINGLE_VALUE_TYPE(switches::kEnableNewAutofillHeuristics)
1023 }, 1023 },
1024 { 1024 {
1025 "enable-web-intents-invocation", 1025 "enable-web-intents-invocation",
1026 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_NAME, 1026 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_NAME,
1027 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_DESCRIPTION, 1027 IDS_FLAGS_WEB_INTENTS_INVOCATION_ENABLED_DESCRIPTION,
1028 kOsAll, 1028 kOsAll,
1029 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled) 1029 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled)
1030 }, 1030 },
1031 {
1032 "enable-autofill-new-elements",
1033 IDS_FLAGS_ENABLE_AUTOFILL_NEW_ELEMENTS_NAME,
1034 IDS_FLAGS_ENABLE_AUTOFILL_NEW_ELEMENTS_DESCRIPTION,
1035 kOsWin | kOsLinux,
Albert Bodenhamer 2012/10/28 17:25:36 kOsCrOS is what you want here, not kOsLinux. The i
1036 SINGLE_VALUE_TYPE(switches::kEnableAutofillNewElements)
1037 },
1031 }; 1038 };
1032 1039
1033 const Experiment* experiments = kExperiments; 1040 const Experiment* experiments = kExperiments;
1034 size_t num_experiments = arraysize(kExperiments); 1041 size_t num_experiments = arraysize(kExperiments);
1035 1042
1036 // Stores and encapsulates the little state that about:flags has. 1043 // Stores and encapsulates the little state that about:flags has.
1037 class FlagsState { 1044 class FlagsState {
1038 public: 1045 public:
1039 FlagsState() : needs_restart_(false) {} 1046 FlagsState() : needs_restart_(false) {}
1040 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1047 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 } 1464 }
1458 1465
1459 const Experiment* GetExperiments(size_t* count) { 1466 const Experiment* GetExperiments(size_t* count) {
1460 *count = num_experiments; 1467 *count = num_experiments;
1461 return experiments; 1468 return experiments;
1462 } 1469 }
1463 1470
1464 } // namespace testing 1471 } // namespace testing
1465 1472
1466 } // namespace about_flags 1473 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698