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; |
} |