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

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: isherman@ 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | 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/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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 kOsWin, 1092 kOsWin,
1093 SINGLE_VALUE_TYPE(switches::kShowAppListShortcut) 1093 SINGLE_VALUE_TYPE(switches::kShowAppListShortcut)
1094 }, 1094 },
1095 { 1095 {
1096 "enable-experimental-form-filling", 1096 "enable-experimental-form-filling",
1097 IDS_FLAGS_ENABLE_EXPERIMENTAL_FORM_FILLING_NAME, 1097 IDS_FLAGS_ENABLE_EXPERIMENTAL_FORM_FILLING_NAME,
1098 IDS_FLAGS_ENABLE_EXPERIMENTAL_FORM_FILLING_DESCRIPTION, 1098 IDS_FLAGS_ENABLE_EXPERIMENTAL_FORM_FILLING_DESCRIPTION,
1099 kOsWin | kOsCrOS, 1099 kOsWin | kOsCrOS,
1100 SINGLE_VALUE_TYPE(switches::kEnableExperimentalFormFilling) 1100 SINGLE_VALUE_TYPE(switches::kEnableExperimentalFormFilling)
1101 }, 1101 },
1102 {
1103 "enable-interactive-autocomplete",
1104 IDS_FLAGS_ENABLE_INTERACTIVE_AUTOCOMPLETE_NAME,
1105 IDS_FLAGS_ENABLE_INTERACTIVE_AUTOCOMPLETE_DESCRIPTION,
1106 kOsWin | kOsCrOS,
1107 SINGLE_VALUE_TYPE(switches::kEnableInteractiveAutocomplete)
1108 },
1102 }; 1109 };
1103 1110
1104 const Experiment* experiments = kExperiments; 1111 const Experiment* experiments = kExperiments;
1105 size_t num_experiments = arraysize(kExperiments); 1112 size_t num_experiments = arraysize(kExperiments);
1106 1113
1107 // Stores and encapsulates the little state that about:flags has. 1114 // Stores and encapsulates the little state that about:flags has.
1108 class FlagsState { 1115 class FlagsState {
1109 public: 1116 public:
1110 FlagsState() : needs_restart_(false) {} 1117 FlagsState() : needs_restart_(false) {}
1111 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 1118 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1528 } 1535 }
1529 1536
1530 const Experiment* GetExperiments(size_t* count) { 1537 const Experiment* GetExperiments(size_t* count) {
1531 *count = num_experiments; 1538 *count = num_experiments;
1532 return experiments; 1539 return experiments;
1533 } 1540 }
1534 1541
1535 } // namespace testing 1542 } // namespace testing
1536 1543
1537 } // namespace about_flags 1544 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698