Index: content/browser/dom_storage/dom_storage_browsertest.cc |
diff --git a/content/browser/dom_storage/dom_storage_browsertest.cc b/content/browser/dom_storage/dom_storage_browsertest.cc |
index 0197ba722f986f53b3b6af4f3e43bdff22985e12..f75c6ad7900dc937d5a28e29bfce88bd26a3f757 100644 |
--- a/content/browser/dom_storage/dom_storage_browsertest.cc |
+++ b/content/browser/dom_storage/dom_storage_browsertest.cc |
@@ -33,11 +33,11 @@ class DomStorageBrowserTest : public InProcessBrowserTest { |
Browser* the_browser = incognito ? CreateIncognitoBrowser() : browser(); |
ui_test_utils::NavigateToURLBlockUntilNavigationsComplete( |
the_browser, test_url, 2); |
- std::string result = the_browser->GetSelectedWebContents()->GetURL().ref(); |
+ std::string result = the_browser->GetActiveWebContents()->GetURL().ref(); |
if (result != "pass") { |
std::string js_result; |
ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString( |
- the_browser->GetSelectedWebContents()->GetRenderViewHost(), L"", |
+ the_browser->GetActiveWebContents()->GetRenderViewHost(), L"", |
L"window.domAutomationController.send(getLog())", &js_result)); |
FAIL() << "Failed: " << js_result; |
} |