| Index: chrome/browser/apps/app_browsertest_util.cc
|
| diff --git a/chrome/browser/apps/app_browsertest_util.cc b/chrome/browser/apps/app_browsertest_util.cc
|
| index 169883fb3117e6e73f89d450a022f4886459a1db..e33979b01d2c26ace69ba12fa3c2d8187245ec23 100644
|
| --- a/chrome/browser/apps/app_browsertest_util.cc
|
| +++ b/chrome/browser/apps/app_browsertest_util.cc
|
| @@ -98,6 +98,14 @@ const Extension* PlatformAppBrowserTest::InstallPlatformApp(
|
| return extension;
|
| }
|
|
|
| +const Extension* PlatformAppBrowserTest::InstallHostedApp() {
|
| + const Extension* extension =
|
| + InstallExtension(test_data_dir_.AppendASCII("hosted_app"), 1);
|
| + EXPECT_TRUE(extension);
|
| +
|
| + return extension;
|
| +}
|
| +
|
| const Extension* PlatformAppBrowserTest::InstallAndLaunchPlatformApp(
|
| const char* name) {
|
| content::WindowedNotificationObserver app_loaded_observer(
|
| @@ -119,6 +127,13 @@ void PlatformAppBrowserTest::LaunchPlatformApp(const Extension* extension) {
|
| extensions::SOURCE_UNTRACKED));
|
| }
|
|
|
| +void PlatformAppBrowserTest::LaunchHostedApp(const Extension* extension) {
|
| + AppLaunchParams launch_params(browser()->profile(), extension,
|
| + NEW_FOREGROUND_TAB,
|
| + extensions::SOURCE_COMMAND_LINE);
|
| + OpenApplication(launch_params);
|
| +}
|
| +
|
| WebContents* PlatformAppBrowserTest::GetFirstAppWindowWebContents() {
|
| AppWindow* window = GetFirstAppWindow();
|
| if (window)
|
|
|