summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/session_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/webdriver/session_manager.cc')
-rw-r--r--chrome/test/webdriver/session_manager.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/chrome/test/webdriver/session_manager.cc b/chrome/test/webdriver/session_manager.cc
index 93097ee..4079443 100644
--- a/chrome/test/webdriver/session_manager.cc
+++ b/chrome/test/webdriver/session_manager.cc
@@ -45,10 +45,8 @@ bool SessionManager::Remove(const std::string& id) {
Session* session;
base::AutoLock lock(map_lock_);
it = map_.find(id);
- if (it == map_.end()) {
- VLOG(1) << "No such session with ID " << id;
+ if (it == map_.end())
return false;
- }
session = it->second;
map_.erase(it);
return true;
@@ -58,10 +56,8 @@ Session* SessionManager::GetSession(const std::string& id) const {
std::map<std::string, Session*>::const_iterator it;
base::AutoLock lock(map_lock_);
it = map_.find(id);
- if (it == map_.end()) {
- VLOG(1) << "No such session with ID " << id;
+ if (it == map_.end())
return NULL;
- }
return it->second;
}