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

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

Issue 5393001: Add an about:flags entry for disabling hyperlink auditing. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 10 years 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) 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 kOsAll, 227 kOsAll,
228 switches::kEnableExperimentalExtensionApis 228 switches::kEnableExperimentalExtensionApis
229 }, 229 },
230 { 230 {
231 "click-to-play", // FLAGS:RECORD_UMA 231 "click-to-play", // FLAGS:RECORD_UMA
232 IDS_FLAGS_CLICK_TO_PLAY_NAME, 232 IDS_FLAGS_CLICK_TO_PLAY_NAME,
233 IDS_FLAGS_CLICK_TO_PLAY_DESCRIPTION, 233 IDS_FLAGS_CLICK_TO_PLAY_DESCRIPTION,
234 kOsAll, 234 kOsAll,
235 switches::kEnableClickToPlay 235 switches::kEnableClickToPlay
236 }, 236 },
237 {
238 "disable-hyperlink-auditing",
239 IDS_FLAGS_DISABLE_HYPERLINK_AUDITING_NAME,
240 IDS_FLAGS_DISABLE_HYPERLINK_AUDITING_DESCRIPTION,
241 kOsAll,
242 switches::kNoPings
243 }
237 }; 244 };
238 245
239 const Experiment* experiments = kExperiments; 246 const Experiment* experiments = kExperiments;
240 size_t num_experiments = arraysize(kExperiments); 247 size_t num_experiments = arraysize(kExperiments);
241 248
242 // Stores and encapsulates the little state that about:flags has. 249 // Stores and encapsulates the little state that about:flags has.
243 class FlagsState { 250 class FlagsState {
244 public: 251 public:
245 FlagsState() : needs_restart_(false) {} 252 FlagsState() : needs_restart_(false) {}
246 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 253 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 num_experiments = arraysize(kExperiments); 541 num_experiments = arraysize(kExperiments);
535 } else { 542 } else {
536 experiments = e; 543 experiments = e;
537 num_experiments = count; 544 num_experiments = count;
538 } 545 }
539 } 546 }
540 547
541 } // namespace testing 548 } // namespace testing
542 549
543 } // namespace about_flags 550 } // 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