Index: chrome/browser/apps/app_browsertest.cc |
diff --git a/chrome/browser/apps/app_browsertest.cc b/chrome/browser/apps/app_browsertest.cc |
index 5dc839ead1d4bfddccdd6c3185297a9b8666b0b2..0a044d757b08d3cbba0ce1f49b4bb7541ab8c079 100644 |
--- a/chrome/browser/apps/app_browsertest.cc |
+++ b/chrome/browser/apps/app_browsertest.cc |
@@ -271,7 +271,7 @@ 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(browser()->profile(), extension); |
CloseAppWindow(window); |
} |
@@ -771,7 +771,7 @@ IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
AppWindowAdjustBoundsToBeVisibleOnScreen) { |
const Extension* extension = LoadAndLaunchPlatformApp("minimal", "Launched"); |
- AppWindow* window = CreateAppWindow(extension); |
+ AppWindow* window = CreateAppWindow(browser()->profile(), extension); |
// The screen bounds didn't change, the cached bounds didn't need to adjust. |
gfx::Rect cached_bounds(80, 100, 400, 400); |