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

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

Issue 11366127: Add a runtime flag for interactive autocomplete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: estade@ review 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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 kOsAll, 1085 kOsAll,
1086 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled) 1086 SINGLE_VALUE_TYPE(switches::kWebIntentsInvocationEnabled)
1087 }, 1087 },
1088 { 1088 {
1089 "show-app-list-shortcut", 1089 "show-app-list-shortcut",
1090 IDS_FLAGS_SHOW_APP_LIST_SHORTCUT_NAME, 1090 IDS_FLAGS_SHOW_APP_LIST_SHORTCUT_NAME,
1091 IDS_FLAGS_SHOW_APP_LIST_SHORTCUT_DESCRIPTION, 1091 IDS_FLAGS_SHOW_APP_LIST_SHORTCUT_DESCRIPTION,
1092 kOsWin, 1092 kOsWin,
1093 SINGLE_VALUE_TYPE(switches::kShowAppListShortcut) 1093 SINGLE_VALUE_TYPE(switches::kShowAppListShortcut)
1094 }, 1094 },
1095 {
1096 "enable-interactive-autocomplete",
1097 IDS_FLAGS_ENABLE_INTERACTIVE_AUTOCOMPLETE_NAME,
1098 IDS_FLAGS_ENABLE_INTERACTIVE_AUTOCOMPLETE_DESCRIPTION,
1099 kOsWin | kOsCrOS,
1100 SINGLE_VALUE_TYPE(switches::kEnableInteractiveAutocomplete)
1101 },
1095 }; 1102 };
1096 1103
1097 const Experiment* experiments = kExperiments; 1104 const Experiment* experiments = kExperiments;
1098 size_t num_experiments = arraysize(kExperiments); 1105 size_t num_experiments = arraysize(kExperiments);
1099 1106
1100 // Stores and encapsulates the little state that about:flags has. 1107 // Stores and encapsulates the little state that about:flags has.
1101 class FlagsState { 1108 class FlagsState {
1102 public: 1109 public:
1103 FlagsState() : needs_restart_(false) {} 1110 FlagsState() : needs_restart_(false) {}
1104 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1111 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 } 1528 }
1522 1529
1523 const Experiment* GetExperiments(size_t* count) { 1530 const Experiment* GetExperiments(size_t* count) {
1524 *count = num_experiments; 1531 *count = num_experiments;
1525 return experiments; 1532 return experiments;
1526 } 1533 }
1527 1534
1528 } // namespace testing 1535 } // namespace testing
1529 1536
1530 } // namespace about_flags 1537 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698