summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_icon_source_apitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_icon_source_apitest.cc')
-rw-r--r--chrome/browser/extensions/extension_icon_source_apitest.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_icon_source_apitest.cc b/chrome/browser/extensions/extension_icon_source_apitest.cc
index 826db97..bbca39f 100644
--- a/chrome/browser/extensions/extension_icon_source_apitest.cc
+++ b/chrome/browser/extensions/extension_icon_source_apitest.cc
@@ -58,9 +58,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionIconSourceTest, IconsLoadedIncognito) {
ui_test_utils::OpenURLOffTheRecord(
browser()->profile(),
GURL("chrome-extension://gbmgkahjioeacddebbnengilkgbkhodg/index.html"));
- Browser* otr_browser = BrowserList::FindBrowserWithType(
- browser()->profile()->GetOffTheRecordProfile(), Browser::TYPE_NORMAL,
- false);
+ Browser* otr_browser = BrowserList::FindTabbedBrowser(
+ browser()->profile()->GetOffTheRecordProfile(), false);
ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString(
otr_browser->GetSelectedTabContents()->render_view_host(), L"",
L"window.domAutomationController.send(document.title)",