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

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

Issue 10535046: Add Windows commandline switch --enable-views-textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | ui/base/native_theme/native_theme_win.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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 SINGLE_VALUE_TYPE(switches::kExperimentalWallpaperUI) 766 SINGLE_VALUE_TYPE(switches::kExperimentalWallpaperUI)
767 }, 767 },
768 { 768 {
769 "enable-new-oobe", 769 "enable-new-oobe",
770 IDS_FLAGS_ENABLE_NEW_OOBE, 770 IDS_FLAGS_ENABLE_NEW_OOBE,
771 IDS_FLAGS_ENABLE_NEW_OOBE_DESCRIPTION, 771 IDS_FLAGS_ENABLE_NEW_OOBE_DESCRIPTION,
772 kOsCrOS, 772 kOsCrOS,
773 SINGLE_VALUE_TYPE(switches::kEnableNewOobe), 773 SINGLE_VALUE_TYPE(switches::kEnableNewOobe),
774 }, 774 },
775 #endif 775 #endif
776 {
777 "enable-views-textfield",
778 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_NAME,
779 IDS_FLAGS_ENABLE_VIEWS_TEXTFIELD_DESCRIPTION,
780 kOsWin,
781 SINGLE_VALUE_TYPE(switches::kEnableViewsTextfield),
782 },
776 }; 783 };
777 784
778 const Experiment* experiments = kExperiments; 785 const Experiment* experiments = kExperiments;
779 size_t num_experiments = arraysize(kExperiments); 786 size_t num_experiments = arraysize(kExperiments);
780 787
781 // Stores and encapsulates the little state that about:flags has. 788 // Stores and encapsulates the little state that about:flags has.
782 class FlagsState { 789 class FlagsState {
783 public: 790 public:
784 FlagsState() : needs_restart_(false) {} 791 FlagsState() : needs_restart_(false) {}
785 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 792 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 } 1208 }
1202 1209
1203 const Experiment* GetExperiments(size_t* count) { 1210 const Experiment* GetExperiments(size_t* count) {
1204 *count = num_experiments; 1211 *count = num_experiments;
1205 return experiments; 1212 return experiments;
1206 } 1213 }
1207 1214
1208 } // namespace testing 1215 } // namespace testing
1209 1216
1210 } // namespace about_flags 1217 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | ui/base/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698