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

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

Issue 6879016: Add multiprofiles to about:flags (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 kOsAll, 167 kOsAll,
168 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) 168 SINGLE_VALUE_TYPE(switches::kShowFPSCounter)
169 }, 169 },
170 { 170 {
171 "gpu-canvas-2d", // FLAGS:RECORD_UMA 171 "gpu-canvas-2d", // FLAGS:RECORD_UMA
172 IDS_FLAGS_ACCELERATED_CANVAS_2D_NAME, 172 IDS_FLAGS_ACCELERATED_CANVAS_2D_NAME,
173 IDS_FLAGS_ACCELERATED_CANVAS_2D_DESCRIPTION, 173 IDS_FLAGS_ACCELERATED_CANVAS_2D_DESCRIPTION,
174 kOsWin | kOsLinux | kOsCrOS, 174 kOsWin | kOsLinux | kOsCrOS,
175 SINGLE_VALUE_TYPE(switches::kEnableAccelerated2dCanvas) 175 SINGLE_VALUE_TYPE(switches::kEnableAccelerated2dCanvas)
176 }, 176 },
177 // FIXME(scheib): Add Flags entry for WebGL,
178 // or pull it and the strings in generated_resources.grd by Dec 2010
179 // {
180 // "webgl",
181 // IDS_FLAGS_WEBGL_NAME,
182 // IDS_FLAGS_WEBGL_DESCRIPTION,
183 // kOsAll,
184 // SINGLE_VALUE_TYPE(switches::kDisableExperimentalWebGL)
185 // }
186 { 177 {
187 "print-preview", // FLAGS:RECORD_UMA 178 "print-preview", // FLAGS:RECORD_UMA
188 IDS_FLAGS_PRINT_PREVIEW_NAME, 179 IDS_FLAGS_PRINT_PREVIEW_NAME,
189 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, 180 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION,
190 kOsMac | kOsWin | kOsLinux, // This switch is not available in CrOS. 181 kOsMac | kOsWin | kOsLinux, // This switch is not available in CrOS.
191 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview) 182 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview)
192 }, 183 },
193 { 184 {
194 "enable-nacl", // FLAGS:RECORD_UMA 185 "enable-nacl", // FLAGS:RECORD_UMA
195 IDS_FLAGS_ENABLE_NACL_NAME, 186 IDS_FLAGS_ENABLE_NACL_NAME,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 IDS_FLAGS_ENABLE_VPN_NAME, 305 IDS_FLAGS_ENABLE_VPN_NAME,
315 IDS_FLAGS_ENABLE_VPN_DESCRIPTION, 306 IDS_FLAGS_ENABLE_VPN_DESCRIPTION,
316 kOsCrOS, 307 kOsCrOS,
317 #if defined(OS_CHROMEOS) 308 #if defined(OS_CHROMEOS)
318 // The switch exists only on Chrome OS. 309 // The switch exists only on Chrome OS.
319 SINGLE_VALUE_TYPE(switches::kEnableVPN) 310 SINGLE_VALUE_TYPE(switches::kEnableVPN)
320 #else 311 #else
321 SINGLE_VALUE_TYPE("") 312 SINGLE_VALUE_TYPE("")
322 #endif 313 #endif
323 }, 314 },
315 {
316 "multi-profiles",
317 IDS_FLAGS_MULTI_PROFILES_NAME,
318 IDS_FLAGS_MULTI_PROFILES_DESCRIPTION,
319 kOsAll,
320 SINGLE_VALUE_TYPE(switches::kMultiProfiles)
321 },
324 }; 322 };
325 323
326 const Experiment* experiments = kExperiments; 324 const Experiment* experiments = kExperiments;
327 size_t num_experiments = arraysize(kExperiments); 325 size_t num_experiments = arraysize(kExperiments);
328 326
329 // Stores and encapsulates the little state that about:flags has. 327 // Stores and encapsulates the little state that about:flags has.
330 class FlagsState { 328 class FlagsState {
331 public: 329 public:
332 FlagsState() : needs_restart_(false) {} 330 FlagsState() : needs_restart_(false) {}
333 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 331 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 } 741 }
744 742
745 const Experiment* GetExperiments(size_t* count) { 743 const Experiment* GetExperiments(size_t* count) {
746 *count = num_experiments; 744 *count = num_experiments;
747 return experiments; 745 return experiments;
748 } 746 }
749 747
750 } // namespace testing 748 } // namespace testing
751 749
752 } // namespace about_flags 750 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698