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

Unified Diff: chrome/browser/about_flags.cc

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ceee/ie/broker/executors_manager.cc ('k') | chrome/browser/background_page_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 15d9cb2f3c1244c8a821a9eebe772c675d07b1f4..b87f4217a047fb80d8742469cc7d021a8e93bd84 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -305,7 +305,7 @@ class FlagsState {
void reset();
// Returns the singleton instance of this class
- static FlagsState* instance() {
+ static FlagsState* GetInstance() {
return Singleton<FlagsState>::get();
}
@@ -467,7 +467,7 @@ Value* CreateChoiceData(const Experiment& experiment,
} // namespace
void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line) {
- FlagsState::instance()->ConvertFlagsToSwitches(prefs, command_line);
+ FlagsState::GetInstance()->ConvertFlagsToSwitches(prefs, command_line);
}
ListValue* GetFlagsExperimentsData(PrefService* prefs) {
@@ -504,17 +504,17 @@ ListValue* GetFlagsExperimentsData(PrefService* prefs) {
}
bool IsRestartNeededToCommitChanges() {
- return FlagsState::instance()->IsRestartNeededToCommitChanges();
+ return FlagsState::GetInstance()->IsRestartNeededToCommitChanges();
}
void SetExperimentEnabled(
PrefService* prefs, const std::string& internal_name, bool enable) {
- FlagsState::instance()->SetExperimentEnabled(prefs, internal_name, enable);
+ FlagsState::GetInstance()->SetExperimentEnabled(prefs, internal_name, enable);
}
void RemoveFlagsSwitches(
std::map<std::string, CommandLine::StringType>* switch_list) {
- FlagsState::instance()->RemoveFlagsSwitches(switch_list);
+ FlagsState::GetInstance()->RemoveFlagsSwitches(switch_list);
}
int GetCurrentPlatform() {
@@ -683,7 +683,7 @@ namespace testing {
const char kMultiSeparator[] = "@";
void ClearState() {
- FlagsState::instance()->reset();
+ FlagsState::GetInstance()->reset();
}
void SetExperiments(const Experiment* e, size_t count) {
« no previous file with comments | « ceee/ie/broker/executors_manager.cc ('k') | chrome/browser/background_page_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698