summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/window_open_apitest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/window_open_apitest.cc')
-rw-r--r--chrome/browser/extensions/window_open_apitest.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/extensions/window_open_apitest.cc b/chrome/browser/extensions/window_open_apitest.cc
index 02a4a58..ef4e9f9 100644
--- a/chrome/browser/extensions/window_open_apitest.cc
+++ b/chrome/browser/extensions/window_open_apitest.cc
@@ -15,6 +15,9 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "net/base/mock_host_resolver.h"
+using content::OpenURLParams;
+using content::Referrer;
+
// Disabled, http://crbug.com/64899.
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_WindowOpen) {
CommandLine::ForCurrentProcess()->AppendSwitch(
@@ -160,10 +163,12 @@ IN_PROC_BROWSER_TEST_F(ExtensionApiTest, PopupBlockingHostedApp) {
test_server()->GetURL(popup_app_contents_path + "open_popup.html")
.ReplaceComponents(replace_host);
- browser()->OpenURL(open_tab, GURL(), NEW_FOREGROUND_TAB,
- content::PAGE_TRANSITION_TYPED);
- browser()->OpenURL(open_popup, GURL(), NEW_FOREGROUND_TAB,
- content::PAGE_TRANSITION_TYPED);
+ browser()->OpenURL(OpenURLParams(
+ open_tab, Referrer(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_TYPED,
+ false));
+ browser()->OpenURL(OpenURLParams(
+ open_popup, Referrer(), NEW_FOREGROUND_TAB,
+ content::PAGE_TRANSITION_TYPED, false));
WaitForTabsAndPopups(browser(), 3, 1, 0);
}