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

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

Issue 11975003: [ChromeDriver] Add support for attaching multiple DevToolsEventListeners to a DevToolsClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added OVERRIDE. Created 7 years, 11 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 | « no previous file | chrome/test/chromedriver/chrome_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome_impl.cc
diff --git a/chrome/test/chromedriver/chrome_impl.cc b/chrome/test/chromedriver/chrome_impl.cc
index adbfab9acd04325df27646134fd2bff2f0540208..2e62d3a0434069e8fadfaaa0e0f40e1a19a2e55d 100644
--- a/chrome/test/chromedriver/chrome_impl.cc
+++ b/chrome/test/chromedriver/chrome_impl.cc
@@ -81,7 +81,8 @@ Status ChromeImpl::Init() {
if (debugger_urls.empty())
return Status(kUnknownError, "unable to discover open pages");
client_.reset(new DevToolsClientImpl(
- socket_factory_, debugger_urls.front(), dom_tracker_.get()));
+ socket_factory_, debugger_urls.front()));
+ client_->AddListener(dom_tracker_.get());
// Perform necessary configuration of the DevTools client.
// Fetch the root document node so that Inspector will push DOM node
« no previous file with comments | « no previous file | chrome/test/chromedriver/chrome_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698