| 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 <iterator> | 7 #include <iterator> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 2124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2135 FlagsStorage* flags_storage, | 2135 FlagsStorage* flags_storage, |
| 2136 const std::string& internal_name, | 2136 const std::string& internal_name, |
| 2137 bool enable); | 2137 bool enable); |
| 2138 void RemoveFlagsSwitches( | 2138 void RemoveFlagsSwitches( |
| 2139 std::map<std::string, base::CommandLine::StringType>* switch_list); | 2139 std::map<std::string, base::CommandLine::StringType>* switch_list); |
| 2140 void ResetAllFlags(FlagsStorage* flags_storage); | 2140 void ResetAllFlags(FlagsStorage* flags_storage); |
| 2141 void reset(); | 2141 void reset(); |
| 2142 | 2142 |
| 2143 // Returns the singleton instance of this class | 2143 // Returns the singleton instance of this class |
| 2144 static FlagsState* GetInstance() { | 2144 static FlagsState* GetInstance() { |
| 2145 return Singleton<FlagsState>::get(); | 2145 return base::Singleton<FlagsState>::get(); |
| 2146 } | 2146 } |
| 2147 | 2147 |
| 2148 private: | 2148 private: |
| 2149 bool needs_restart_; | 2149 bool needs_restart_; |
| 2150 std::map<std::string, std::string> flags_switches_; | 2150 std::map<std::string, std::string> flags_switches_; |
| 2151 | 2151 |
| 2152 DISALLOW_COPY_AND_ASSIGN(FlagsState); | 2152 DISALLOW_COPY_AND_ASSIGN(FlagsState); |
| 2153 }; | 2153 }; |
| 2154 | 2154 |
| 2155 // Adds the internal names for the specified experiment to |names|. | 2155 // Adds the internal names for the specified experiment to |names|. |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2750 } | 2750 } |
| 2751 | 2751 |
| 2752 const Experiment* GetExperiments(size_t* count) { | 2752 const Experiment* GetExperiments(size_t* count) { |
| 2753 *count = num_experiments; | 2753 *count = num_experiments; |
| 2754 return experiments; | 2754 return experiments; |
| 2755 } | 2755 } |
| 2756 | 2756 |
| 2757 } // namespace testing | 2757 } // namespace testing |
| 2758 | 2758 |
| 2759 } // namespace about_flags | 2759 } // namespace about_flags |
| OLD | NEW |