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

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

Issue 5238002: Reintegrate 552 r66225-r66645.... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/552d/src/
Patch Set: '' Created 10 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/nibs/ContentSettings.xib ('k') | chrome/browser/browser_navigator.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 // IDS_FLAGS_WEBGL_DESCRIPTION, 156 // IDS_FLAGS_WEBGL_DESCRIPTION,
157 // kOsAll, 157 // kOsAll,
158 // switches::kDisableExperimentalWebGL 158 // switches::kDisableExperimentalWebGL
159 // } 159 // }
160 //{ 160 //{
161 // "print-preview", // Do not change; see above 161 // "print-preview", // Do not change; see above
162 // IDS_FLAGS_PRINT_PREVIEW_NAME, 162 // IDS_FLAGS_PRINT_PREVIEW_NAME,
163 // IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, 163 // IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION,
164 // kOsAll, 164 // kOsAll,
165 // switches::kEnablePrintPreview 165 // switches::kEnablePrintPreview
166 //} 166 //},
167 {
168 "click-to-play", // Do not change; see above.
169 IDS_FLAGS_CLICK_TO_PLAY_NAME,
170 IDS_FLAGS_CLICK_TO_PLAY_DESCRIPTION,
171 kOsAll,
172 switches::kEnableClickToPlay
173 },
167 }; 174 };
168 175
169 const Experiment* experiments = kExperiments; 176 const Experiment* experiments = kExperiments;
170 size_t num_experiments = arraysize(kExperiments); 177 size_t num_experiments = arraysize(kExperiments);
171 178
172 // Stores and encapsulates the little state that about:flags has. 179 // Stores and encapsulates the little state that about:flags has.
173 class FlagsState { 180 class FlagsState {
174 public: 181 public:
175 FlagsState() : needs_restart_(false) {} 182 FlagsState() : needs_restart_(false) {}
176 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 183 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 num_experiments = arraysize(kExperiments); 456 num_experiments = arraysize(kExperiments);
450 } else { 457 } else {
451 experiments = e; 458 experiments = e;
452 num_experiments = count; 459 num_experiments = count;
453 } 460 }
454 } 461 }
455 462
456 } // namespace testing 463 } // namespace testing
457 464
458 } // namespace about_flags 465 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/nibs/ContentSettings.xib ('k') | chrome/browser/browser_navigator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698