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

Unified Diff: base/linux_util.cc

Issue 5734002: Continuation of CL 5685007, rename the singleton accessor method in more files. (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
Index: base/linux_util.cc
diff --git a/base/linux_util.cc b/base/linux_util.cc
index 62931ce5354365ea81e0ccc092a8cd3bb142ace2..e1f7275ea7722ff054f67729537f9d5de0c21716 100644
--- a/base/linux_util.cc
+++ b/base/linux_util.cc
@@ -38,7 +38,7 @@ enum LinuxDistroState {
class LinuxDistroHelper {
public:
// Retrieves the Singleton.
- static LinuxDistroHelper* Get() {
+ static LinuxDistroHelper* GetInstance() {
return Singleton<LinuxDistroHelper>::get();
}
@@ -141,7 +141,7 @@ std::string GetLinuxDistro() {
#if defined(OS_CHROMEOS)
return g_linux_distro;
#elif defined(OS_LINUX)
- LinuxDistroHelper* distro_state_singleton = LinuxDistroHelper::Get();
+ LinuxDistroHelper* distro_state_singleton = LinuxDistroHelper::GetInstance();
LinuxDistroState state = distro_state_singleton->State();
if (STATE_DID_NOT_CHECK == state) {
// We do this check only once per process. If it fails, there's

Powered by Google App Engine
This is Rietveld 408576698