| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |