| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 kOsMac, | 178 kOsMac, |
| 179 switches::kEnableConfirmToQuit | 179 switches::kEnableConfirmToQuit |
| 180 }, | 180 }, |
| 181 { | 181 { |
| 182 "snap-start", // Do not change; see above. | 182 "snap-start", // Do not change; see above. |
| 183 IDS_FLAGS_SNAP_START_NAME, | 183 IDS_FLAGS_SNAP_START_NAME, |
| 184 IDS_FLAGS_SNAP_START_DESCRIPTION, | 184 IDS_FLAGS_SNAP_START_DESCRIPTION, |
| 185 kOsAll, | 185 kOsAll, |
| 186 switches::kEnableSnapStart | 186 switches::kEnableSnapStart |
| 187 }, | 187 }, |
| 188 { |
| 189 "click-to-play", // Do not change; see above. |
| 190 IDS_FLAGS_CLICK_TO_PLAY_NAME, |
| 191 IDS_FLAGS_CLICK_TO_PLAY_DESCRIPTION, |
| 192 kOsAll, |
| 193 switches::kEnableClickToPlay |
| 194 }, |
| 188 }; | 195 }; |
| 189 | 196 |
| 190 const Experiment* experiments = kExperiments; | 197 const Experiment* experiments = kExperiments; |
| 191 size_t num_experiments = arraysize(kExperiments); | 198 size_t num_experiments = arraysize(kExperiments); |
| 192 | 199 |
| 193 // Stores and encapsulates the little state that about:flags has. | 200 // Stores and encapsulates the little state that about:flags has. |
| 194 class FlagsState { | 201 class FlagsState { |
| 195 public: | 202 public: |
| 196 FlagsState() : needs_restart_(false) {} | 203 FlagsState() : needs_restart_(false) {} |
| 197 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 204 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 num_experiments = arraysize(kExperiments); | 451 num_experiments = arraysize(kExperiments); |
| 445 } else { | 452 } else { |
| 446 experiments = e; | 453 experiments = e; |
| 447 num_experiments = count; | 454 num_experiments = count; |
| 448 } | 455 } |
| 449 } | 456 } |
| 450 | 457 |
| 451 } // namespace testing | 458 } // namespace testing |
| 452 | 459 |
| 453 } // namespace about_flags | 460 } // namespace about_flags |
| OLD | NEW |