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 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2098 FlagsStorage* flags_storage, | 2098 FlagsStorage* flags_storage, |
2099 const std::string& internal_name, | 2099 const std::string& internal_name, |
2100 bool enable); | 2100 bool enable); |
2101 void RemoveFlagsSwitches( | 2101 void RemoveFlagsSwitches( |
2102 std::map<std::string, base::CommandLine::StringType>* switch_list); | 2102 std::map<std::string, base::CommandLine::StringType>* switch_list); |
2103 void ResetAllFlags(FlagsStorage* flags_storage); | 2103 void ResetAllFlags(FlagsStorage* flags_storage); |
2104 void reset(); | 2104 void reset(); |
2105 | 2105 |
2106 // Returns the singleton instance of this class | 2106 // Returns the singleton instance of this class |
2107 static FlagsState* GetInstance() { | 2107 static FlagsState* GetInstance() { |
2108 return Singleton<FlagsState>::get(); | 2108 return base::Singleton<FlagsState>::get(); |
2109 } | 2109 } |
2110 | 2110 |
2111 private: | 2111 private: |
2112 bool needs_restart_; | 2112 bool needs_restart_; |
2113 std::map<std::string, std::string> flags_switches_; | 2113 std::map<std::string, std::string> flags_switches_; |
2114 | 2114 |
2115 DISALLOW_COPY_AND_ASSIGN(FlagsState); | 2115 DISALLOW_COPY_AND_ASSIGN(FlagsState); |
2116 }; | 2116 }; |
2117 | 2117 |
2118 // Adds the internal names for the specified experiment to |names|. | 2118 // Adds the internal names for the specified experiment to |names|. |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2713 } | 2713 } |
2714 | 2714 |
2715 const Experiment* GetExperiments(size_t* count) { | 2715 const Experiment* GetExperiments(size_t* count) { |
2716 *count = num_experiments; | 2716 *count = num_experiments; |
2717 return experiments; | 2717 return experiments; |
2718 } | 2718 } |
2719 | 2719 |
2720 } // namespace testing | 2720 } // namespace testing |
2721 | 2721 |
2722 } // namespace about_flags | 2722 } // namespace about_flags |
OLD | NEW |