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

Unified Diff: chrome/test/webdriver/commands/webdriver_command.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/commands/webdriver_command.cc
diff --git a/chrome/test/webdriver/commands/webdriver_command.cc b/chrome/test/webdriver/commands/webdriver_command.cc
index da1b601070c22cceb8c8a109030bf858a8598f17..206679ec38b0436d31b2f1b13b885e5ccc39f178 100644
--- a/chrome/test/webdriver/commands/webdriver_command.cc
+++ b/chrome/test/webdriver/commands/webdriver_command.cc
@@ -51,7 +51,7 @@ bool WebDriverCommand::Init(Response* const response) {
}
VLOG(1) << "Fetching session: " << session_id;
- session_ = Singleton<SessionManager>::get()->GetSession(session_id);
+ session_ = SessionManager::GetInstance()->GetSession(session_id);
if (session_ == NULL) {
response->set_value(Value::CreateStringValue(
"Session not found: " + session_id));

Powered by Google App Engine
This is Rietveld 408576698