Index: content/browser/debugger/devtools_sanity_unittest.cc |
diff --git a/content/browser/debugger/devtools_sanity_unittest.cc b/content/browser/debugger/devtools_sanity_unittest.cc |
index 365efac836eb1e0cc2740f28cd2dfcbb46642075..fb7f6915526e0543d8aef448c2204ff2a2b74044 100644 |
--- a/content/browser/debugger/devtools_sanity_unittest.cc |
+++ b/content/browser/debugger/devtools_sanity_unittest.cc |
@@ -104,12 +104,7 @@ class DevToolsSanityTest : public InProcessBrowserTest { |
ui_test_utils::NavigateToURL(browser(), url); |
inspected_rvh_ = GetInspectedTab()->render_view_host(); |
- DevToolsManager* devtools_manager = DevToolsManager::GetInstance(); |
- devtools_manager->OpenDevToolsWindow(inspected_rvh_); |
- |
- DevToolsClientHost* client_host = |
- devtools_manager->GetDevToolsClientHostFor(inspected_rvh_); |
- window_ = client_host->AsDevToolsWindow(); |
+ window_ = DevToolsWindow::OpenDevToolsWindow(inspected_rvh_); |
RenderViewHost* client_rvh = window_->GetRenderViewHost(); |
client_contents_ = client_rvh->delegate()->GetAsTabContents(); |
ui_test_utils::WaitForNavigation(&client_contents_->controller()); |