OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |