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

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

Issue 7139001: In chromedriver, add /log url (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
diff --git a/chrome/test/webdriver/session_manager.cc b/chrome/test/webdriver/session_manager.cc
index 93097ee6c68c8cdb360269599bfbf06804904955..40794437d17a451943fca1a7780f4b55dd882c84 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;
}
« 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