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

Unified Diff: chrome/test/webdriver/session_manager.cc

Issue 7108037: Revert 88492 - In chromedriver, add /log url to get the contents of the chromedriver log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 months 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
« no previous file with comments | « chrome/test/webdriver/server.cc ('k') | chrome/test/webdriver/utility_functions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/session_manager.cc
===================================================================
--- chrome/test/webdriver/session_manager.cc (revision 88495)
+++ chrome/test/webdriver/session_manager.cc (working copy)
@@ -45,8 +45,10 @@
Session* session;
base::AutoLock lock(map_lock_);
it = map_.find(id);
- if (it == map_.end())
+ if (it == map_.end()) {
+ VLOG(1) << "No such session with ID " << id;
return false;
+ }
session = it->second;
map_.erase(it);
return true;
@@ -56,8 +58,10 @@
std::map<std::string, Session*>::const_iterator it;
base::AutoLock lock(map_lock_);
it = map_.find(id);
- if (it == map_.end())
+ if (it == map_.end()) {
+ VLOG(1) << "No such session with ID " << id;
return NULL;
+ }
return it->second;
}
« no previous file with comments | « chrome/test/webdriver/server.cc ('k') | chrome/test/webdriver/utility_functions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698