diff options
author | lfg <lfg@chromium.org> | 2014-10-24 10:34:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-24 17:34:30 +0000 |
commit | 45eeb4a8886278206f4ebd9e8335314d042fb987 (patch) | |
tree | 595cb17b0bd3287a608a51f28e98cdc20f042e3f /extensions/shell/test | |
parent | 1610bcc9cf8f30c55d81d3d9aa2391f993667ee5 (diff) | |
download | chromium_src-45eeb4a8886278206f4ebd9e8335314d042fb987.zip chromium_src-45eeb4a8886278206f4ebd9e8335314d042fb987.tar.gz chromium_src-45eeb4a8886278206f4ebd9e8335314d042fb987.tar.bz2 |
Add the ability to load multiple apps into app_shell.
* To load the apps you can specify a comma-separated list in the command-line.
For example: 'app_shell --app-shell-app-path=path/to/app1/,path/to/app2'
* For now there's no API to control the focus of the apps, so the only way
to switch apps is to either close the app_window (which will switch focus to
the next app in the hierarchy) or using the aura::Window API directly and
calling Focus() on the windows.
BUG=422618
Review URL: https://codereview.chromium.org/642383003
Cr-Commit-Position: refs/heads/master@{#301135}
Diffstat (limited to 'extensions/shell/test')
-rw-r--r-- | extensions/shell/test/shell_apitest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/shell/test/shell_apitest.cc b/extensions/shell/test/shell_apitest.cc index b60bf5b..f1ea7a2 100644 --- a/extensions/shell/test/shell_apitest.cc +++ b/extensions/shell/test/shell_apitest.cc @@ -24,11 +24,11 @@ bool ShellApiTest::RunAppTest(const std::string& app_dir) { test_data_dir = test_data_dir.AppendASCII(app_dir); ResultCatcher catcher; - bool loaded = extension_system_->LoadApp(test_data_dir); - if (!loaded) + const Extension* extension = extension_system_->LoadApp(test_data_dir); + if (!extension) return false; - extension_system_->LaunchApp(); + extension_system_->LaunchApp(extension->id()); if (!catcher.GetNextResult()) { message_ = catcher.message(); |