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

Unified Diff: chrome/test/chromedriver/commands.cc

Issue 12321057: [chromedriver] Implement reconnection to DevTools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 7 years, 10 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
Index: chrome/test/chromedriver/commands.cc
diff --git a/chrome/test/chromedriver/commands.cc b/chrome/test/chromedriver/commands.cc
index 443cd1b8c4f8d669eae92eecabeec01afb300470..06184a349a824b28084f60cd664765845a561592 100644
--- a/chrome/test/chromedriver/commands.cc
+++ b/chrome/test/chromedriver/commands.cc
@@ -137,6 +137,9 @@ Status ExecuteNewSession(
Status(kUnknownError, "unable to discover open window in chrome");
}
WebView* default_web_view = web_views.front();
+ status = default_web_view->EnsureAlive();
+ if (status.IsError())
+ return status;
std::string chrome_version;
status = CheckChromeVersion(default_web_view, &chrome_version);

Powered by Google App Engine
This is Rietveld 408576698