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

Unified Diff: chrome/browser/chromeos/network_state_notifier.h

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.h
diff --git a/chrome/browser/chromeos/network_state_notifier.h b/chrome/browser/chromeos/network_state_notifier.h
index 94e57f41432a9385a5c9d8ed361977b99325d66a..31103f0b30b30c45671baba9f113f6899af336cf 100644
--- a/chrome/browser/chromeos/network_state_notifier.h
+++ b/chrome/browser/chromeos/network_state_notifier.h
@@ -48,7 +48,7 @@ class NetworkStateDetails {
class NetworkStateNotifier : public NetworkLibrary::NetworkManagerObserver {
public:
// Returns the singleton instance of the network state notifier;
- static NetworkStateNotifier* Get();
+ static NetworkStateNotifier* GetInstance();
// The duration of being in offline. The value is undefined when
// when network is connected.
@@ -56,7 +56,7 @@ class NetworkStateNotifier : public NetworkLibrary::NetworkManagerObserver {
// Returns true if the network is connected.
static bool is_connected() {
- return Get()->state_ == NetworkStateDetails::CONNECTED;
+ return GetInstance()->state_ == NetworkStateDetails::CONNECTED;
}
// NetworkLibrary::NetworkManagerObserver implementation.

Powered by Google App Engine
This is Rietveld 408576698