Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/trace_event/trace_log.cc ('k') | chrome/browser/android/logo_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 FlagsStorage* flags_storage, 2108 FlagsStorage* flags_storage,
2109 const std::string& internal_name, 2109 const std::string& internal_name,
2110 bool enable); 2110 bool enable);
2111 void RemoveFlagsSwitches( 2111 void RemoveFlagsSwitches(
2112 std::map<std::string, base::CommandLine::StringType>* switch_list); 2112 std::map<std::string, base::CommandLine::StringType>* switch_list);
2113 void ResetAllFlags(FlagsStorage* flags_storage); 2113 void ResetAllFlags(FlagsStorage* flags_storage);
2114 void reset(); 2114 void reset();
2115 2115
2116 // Returns the singleton instance of this class 2116 // Returns the singleton instance of this class
2117 static FlagsState* GetInstance() { 2117 static FlagsState* GetInstance() {
2118 return Singleton<FlagsState>::get(); 2118 return base::Singleton<FlagsState>::get();
2119 } 2119 }
2120 2120
2121 private: 2121 private:
2122 bool needs_restart_; 2122 bool needs_restart_;
2123 std::map<std::string, std::string> flags_switches_; 2123 std::map<std::string, std::string> flags_switches_;
2124 2124
2125 DISALLOW_COPY_AND_ASSIGN(FlagsState); 2125 DISALLOW_COPY_AND_ASSIGN(FlagsState);
2126 }; 2126 };
2127 2127
2128 // Adds the internal names for the specified experiment to |names|. 2128 // Adds the internal names for the specified experiment to |names|.
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2723 } 2723 }
2724 2724
2725 const Experiment* GetExperiments(size_t* count) { 2725 const Experiment* GetExperiments(size_t* count) {
2726 *count = num_experiments; 2726 *count = num_experiments;
2727 return experiments; 2727 return experiments;
2728 } 2728 }
2729 2729
2730 } // namespace testing 2730 } // namespace testing
2731 2731
2732 } // namespace about_flags 2732 } // namespace about_flags
OLDNEW
« no previous file with comments | « base/trace_event/trace_log.cc ('k') | chrome/browser/android/logo_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698