| Index: chrome/test/chromedriver/chrome_impl.cc
|
| diff --git a/chrome/test/chromedriver/chrome_impl.cc b/chrome/test/chromedriver/chrome_impl.cc
|
| index 00871ebcbf870c76370a46ce1f35fae766259a94..b6b9ee9ce31095b94095dd42dc4d1a41bad6f189 100644
|
| --- a/chrome/test/chromedriver/chrome_impl.cc
|
| +++ b/chrome/test/chromedriver/chrome_impl.cc
|
| @@ -94,7 +94,6 @@ ChromeImpl::ChromeImpl(base::ProcessHandle process,
|
| context_getter_(context_getter),
|
| port_(port),
|
| socket_factory_(socket_factory),
|
| - dom_tracker_(new DomTracker()),
|
| frame_tracker_(new FrameTracker()),
|
| navigation_tracker_(new NavigationTracker()) {
|
| if (user_data_dir->IsValid()) {
|
| @@ -120,23 +119,14 @@ Status ChromeImpl::Init() {
|
| return Status(kUnknownError, "unable to discover open pages");
|
| client_.reset(new DevToolsClientImpl(
|
| socket_factory_, debugger_urls.front()));
|
| + dom_tracker_.reset(new DomTracker(client_.get()));
|
| + Status status = dom_tracker_->Init();
|
| + if (status.IsError())
|
| + return status;
|
| client_->AddListener(dom_tracker_.get());
|
| client_->AddListener(frame_tracker_.get());
|
| client_->AddListener(navigation_tracker_.get());
|
| -
|
| - // Perform necessary configuration of the DevTools client.
|
| - // Fetch the root document node so that Inspector will push DOM node
|
| - // information to the client.
|
| - base::DictionaryValue params;
|
| - Status status = client_->SendCommand("DOM.getDocument", params);
|
| - if (status.IsError())
|
| - return status;
|
| - // Enable page domain notifications to allow tracking navigation state.
|
| - status = client_->SendCommand("Page.enable", params);
|
| - if (status.IsError())
|
| - return status;
|
| - // Enable runtime events to allow tracking execution context creation.
|
| - return client_->SendCommand("Runtime.enable", params);
|
| + return Status(kOk);
|
| }
|
|
|
| Status ChromeImpl::Load(const std::string& url) {
|
|
|