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

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

Issue 5346009: Add experimental location features to the about:flags page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/tools
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') | chrome/tools/chromeactions.txt » ('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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 IDS_FLAGS_CLICK_TO_PLAY_DESCRIPTION, 240 IDS_FLAGS_CLICK_TO_PLAY_DESCRIPTION,
241 kOsAll, 241 kOsAll,
242 switches::kEnableClickToPlay 242 switches::kEnableClickToPlay
243 }, 243 },
244 { 244 {
245 "disable-hyperlink-auditing", 245 "disable-hyperlink-auditing",
246 IDS_FLAGS_DISABLE_HYPERLINK_AUDITING_NAME, 246 IDS_FLAGS_DISABLE_HYPERLINK_AUDITING_NAME,
247 IDS_FLAGS_DISABLE_HYPERLINK_AUDITING_DESCRIPTION, 247 IDS_FLAGS_DISABLE_HYPERLINK_AUDITING_DESCRIPTION,
248 kOsAll, 248 kOsAll,
249 switches::kNoPings 249 switches::kNoPings
250 },
251 {
252 "experimental-location-features", // FLAGS:RECORD_UMA
253 IDS_FLAGS_EXPERIMENTAL_LOCATION_FEATURES_NAME,
254 IDS_FLAGS_EXPERIMENTAL_LOCATION_FEATURES_DESCRIPTION,
255 kOsMac | kOsWin | kOsLinux, // Currently does nothing on CrOS.
256 switches::kExperimentalLocationFeatures
250 } 257 }
251 }; 258 };
252 259
253 const Experiment* experiments = kExperiments; 260 const Experiment* experiments = kExperiments;
254 size_t num_experiments = arraysize(kExperiments); 261 size_t num_experiments = arraysize(kExperiments);
255 262
256 // Stores and encapsulates the little state that about:flags has. 263 // Stores and encapsulates the little state that about:flags has.
257 class FlagsState { 264 class FlagsState {
258 public: 265 public:
259 FlagsState() : needs_restart_(false) {} 266 FlagsState() : needs_restart_(false) {}
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 num_experiments = arraysize(kExperiments); 555 num_experiments = arraysize(kExperiments);
549 } else { 556 } else {
550 experiments = e; 557 experiments = e;
551 num_experiments = count; 558 num_experiments = count;
552 } 559 }
553 } 560 }
554 561
555 } // namespace testing 562 } // namespace testing
556 563
557 } // namespace about_flags 564 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/tools/chromeactions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698