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

Unified Diff: chrome/test/webdriver/session_manager.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: chrome/test/webdriver/session_manager.cc
diff --git a/chrome/test/webdriver/session_manager.cc b/chrome/test/webdriver/session_manager.cc
index 6e49bb67d1593a682019cc558e1ae4d72e3d4b97..ab7db24fedb42edeecda13737a1f3c0d08a59caf 100644
--- a/chrome/test/webdriver/session_manager.cc
+++ b/chrome/test/webdriver/session_manager.cc
@@ -183,4 +183,9 @@ Session* SessionManager::GetSession(const std::string& id) const {
return it->second;
}
+// static
+SessionManager* SessionManager::GetInstance() {
+ return Singleton<SessionManager>::get();
+}
+
} // namespace webdriver

Powered by Google App Engine
This is Rietveld 408576698