Index: chrome/browser/apps/app_browsertest.cc |
diff --git a/chrome/browser/apps/app_browsertest.cc b/chrome/browser/apps/app_browsertest.cc |
index ebe77d91375c4d5a211c11ffdb1729cfd04c5021..6f2c6cff52a60458a63ca592870a9957e816bfce 100644 |
--- a/chrome/browser/apps/app_browsertest.cc |
+++ b/chrome/browser/apps/app_browsertest.cc |
@@ -270,7 +270,8 @@ const char kTestFilePath[] = "platform_apps/launch_files/test.txt"; |
// ash, so we test that it works here. |
IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, CreateAndCloseAppWindow) { |
const Extension* extension = LoadAndLaunchPlatformApp("minimal", "Launched"); |
- AppWindow* window = CreateAppWindow(extension); |
+ AppWindow* window = |
+ CreateAppWindow(extension, GetFirstAppWindowWebContents()); |
CloseAppWindow(window); |
} |
@@ -760,7 +761,8 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
AppWindowAdjustBoundsToBeVisibleOnScreen) { |
const Extension* extension = LoadAndLaunchPlatformApp("minimal", "Launched"); |
- AppWindow* window = CreateAppWindow(extension); |
+ AppWindow* window = |
+ CreateAppWindow(extension, GetFirstAppWindowWebContents()); |
// The screen bounds didn't change, the cached bounds didn't need to adjust. |
gfx::Rect cached_bounds(80, 100, 400, 400); |