| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 kOsAll, | 558 kOsAll, |
| 559 SINGLE_VALUE_TYPE(switches::kDisableUberPage) | 559 SINGLE_VALUE_TYPE(switches::kDisableUberPage) |
| 560 }, | 560 }, |
| 561 { | 561 { |
| 562 "enable-shadow-dom", | 562 "enable-shadow-dom", |
| 563 IDS_FLAGS_SHADOW_DOM_NAME, | 563 IDS_FLAGS_SHADOW_DOM_NAME, |
| 564 IDS_FLAGS_SHADOW_DOM_DESCRIPTION, | 564 IDS_FLAGS_SHADOW_DOM_DESCRIPTION, |
| 565 kOsAll, | 565 kOsAll, |
| 566 SINGLE_VALUE_TYPE(switches::kEnableShadowDOM) | 566 SINGLE_VALUE_TYPE(switches::kEnableShadowDOM) |
| 567 }, | 567 }, |
| 568 { |
| 569 "enable-extension-activity-ui", |
| 570 IDS_FLAGS_ENABLE_EXTENSION_ACTIVITY_UI_NAME, |
| 571 IDS_FLAGS_ENABLE_EXTENSION_ACTIVITY_UI_DESCRIPTION, |
| 572 kOsAll, |
| 573 SINGLE_VALUE_TYPE(switches::kEnableExtensionActivityUI) |
| 574 } |
| 568 }; | 575 }; |
| 569 | 576 |
| 570 const Experiment* experiments = kExperiments; | 577 const Experiment* experiments = kExperiments; |
| 571 size_t num_experiments = arraysize(kExperiments); | 578 size_t num_experiments = arraysize(kExperiments); |
| 572 | 579 |
| 573 // Stores and encapsulates the little state that about:flags has. | 580 // Stores and encapsulates the little state that about:flags has. |
| 574 class FlagsState { | 581 class FlagsState { |
| 575 public: | 582 public: |
| 576 FlagsState() : needs_restart_(false) {} | 583 FlagsState() : needs_restart_(false) {} |
| 577 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); | 584 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 } | 1010 } |
| 1004 | 1011 |
| 1005 const Experiment* GetExperiments(size_t* count) { | 1012 const Experiment* GetExperiments(size_t* count) { |
| 1006 *count = num_experiments; | 1013 *count = num_experiments; |
| 1007 return experiments; | 1014 return experiments; |
| 1008 } | 1015 } |
| 1009 | 1016 |
| 1010 } // namespace testing | 1017 } // namespace testing |
| 1011 | 1018 |
| 1012 } // namespace about_flags | 1019 } // namespace about_flags |
| OLD | NEW |