summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/app_shim/extension_app_shim_handler_mac.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/app_shim/extension_app_shim_handler_mac.cc b/apps/app_shim/extension_app_shim_handler_mac.cc
index 9e6077d..b2f9a1a 100644
--- a/apps/app_shim/extension_app_shim_handler_mac.cc
+++ b/apps/app_shim/extension_app_shim_handler_mac.cc
@@ -140,9 +140,13 @@ void ExtensionAppShimHandler::Delegate::LaunchApp(
const std::vector<base::FilePath>& files) {
CoreAppLauncherHandler::RecordAppLaunchType(
extension_misc::APP_LAUNCH_CMD_LINE_APP, extension->GetType());
- for (std::vector<base::FilePath>::const_iterator it = files.begin();
- it != files.end(); ++it) {
- apps::LaunchPlatformAppWithPath(profile, extension, *it);
+ if (files.empty()) {
+ apps::LaunchPlatformApp(profile, extension);
+ } else {
+ for (std::vector<base::FilePath>::const_iterator it = files.begin();
+ it != files.end(); ++it) {
+ apps::LaunchPlatformAppWithPath(profile, extension, *it);
+ }
}
}