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

Unified Diff: chrome/browser/chromeos/network_state_notifier.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: chrome/browser/chromeos/network_state_notifier.cc
diff --git a/chrome/browser/chromeos/network_state_notifier.cc b/chrome/browser/chromeos/network_state_notifier.cc
index 80acfaf2ffac85d93680fa0760f6cab3bfd30add..b94084532fae5cd6321b9d87dfd3f34324a5dfff 100644
--- a/chrome/browser/chromeos/network_state_notifier.cc
+++ b/chrome/browser/chromeos/network_state_notifier.cc
@@ -17,7 +17,7 @@ using base::Time;
using base::TimeDelta;
// static
-NetworkStateNotifier* NetworkStateNotifier::Get() {
+NetworkStateNotifier* NetworkStateNotifier::GetInstance() {
return Singleton<NetworkStateNotifier>::get();
}
@@ -27,7 +27,7 @@ TimeDelta NetworkStateNotifier::GetOfflineDuration() {
// TODO(oshima): make this instance method so that
// we can mock this for ui_tests.
// http://crbug.com/4825 .
- return base::Time::Now() - Get()->offline_start_time_;
+ return base::Time::Now() - GetInstance()->offline_start_time_;
}
NetworkStateNotifier::NetworkStateNotifier()

Powered by Google App Engine
This is Rietveld 408576698