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