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

Unified Diff: ipc/ipc_channel_posix.cc

Issue 5581008: Add a new GetInstance() method for singleton classes, take 2. (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: ipc/ipc_channel_posix.cc
diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
index bbf137432943d7abfe487f8dacf96828a31823ee..781175e33ac0ff74ce444e7f8f30a4ad94c72e52 100644
--- a/ipc/ipc_channel_posix.cc
+++ b/ipc/ipc_channel_posix.cc
@@ -396,7 +396,7 @@ bool Channel::ChannelImpl::CreatePipe(const std::string& channel_id,
}
used_initial_channel = true;
- pipe_ = Singleton<base::GlobalDescriptors>()->Get(kPrimaryIPCChannel);
+ pipe_ = base::GlobalDescriptors::GetInstance()->Get(kPrimaryIPCChannel);
}
} else {
waiting_connect_ = mode == MODE_SERVER;

Powered by Google App Engine
This is Rietveld 408576698