summaryrefslogtreecommitdiffstats
path: root/extensions/browser/api
diff options
context:
space:
mode:
authorcylee <cylee@chromium.org>2014-11-20 10:26:06 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-20 18:26:44 +0000
commit96cd75fce7e9523041c86a15b9916c8d57c99ac3 (patch)
tree9c5af3c24cbf6c114e89822c2dab88ab04db1c4e /extensions/browser/api
parentfcefc83beb698980c4c3418374837b3efc6fb7b1 (diff)
downloadchromium_src-96cd75fce7e9523041c86a15b9916c8d57c99ac3.zip
chromium_src-96cd75fce7e9523041c86a15b9916c8d57c99ac3.tar.gz
chromium_src-96cd75fce7e9523041c86a15b9916c8d57c99ac3.tar.bz2
Make "source" a required argument of AppLaunchParams and fill in the argument at all call points.
BUG=400619 Review URL: https://codereview.chromium.org/722703002 Cr-Commit-Position: refs/heads/master@{#305038}
Diffstat (limited to 'extensions/browser/api')
-rw-r--r--extensions/browser/api/app_runtime/app_runtime_api.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/extensions/browser/api/app_runtime/app_runtime_api.cc b/extensions/browser/api/app_runtime/app_runtime_api.cc
index 13ac1be..6cb7c71 100644
--- a/extensions/browser/api/app_runtime/app_runtime_api.cc
+++ b/extensions/browser/api/app_runtime/app_runtime_api.cc
@@ -83,13 +83,24 @@ app_runtime::LaunchSource getLaunchSourceEnum(
return app_runtime::LAUNCH_SOURCE_FILE_HANDLER;
case extensions::SOURCE_URL_HANDLER:
return app_runtime::LAUNCH_SOURCE_URL_HANDLER;
-
case extensions::SOURCE_SYSTEM_TRAY:
return app_runtime::LAUNCH_SOURCE_SYSTEM_TRAY;
case extensions::SOURCE_ABOUT_PAGE:
return app_runtime::LAUNCH_SOURCE_ABOUT_PAGE;
case extensions::SOURCE_KEYBOARD:
return app_runtime::LAUNCH_SOURCE_KEYBOARD;
+ case extensions::SOURCE_EXTENSIONS_PAGE:
+ return app_runtime::LAUNCH_SOURCE_EXTENSIONS_PAGE;
+ case extensions::SOURCE_MANAGEMENT_API:
+ return app_runtime::LAUNCH_SOURCE_MANAGEMENT_API;
+ case extensions::SOURCE_EPHEMERAL_APP:
+ return app_runtime::LAUNCH_SOURCE_EPHEMERAL_APP;
+ case extensions::SOURCE_BACKGROUND:
+ return app_runtime::LAUNCH_SOURCE_BACKGROUND;
+ case extensions::SOURCE_KIOSK:
+ return app_runtime::LAUNCH_SOURCE_KIOSK;
+ case extensions::SOURCE_CHROME_INTERNAL:
+ return app_runtime::LAUNCH_SOURCE_CHROME_INTERNAL;
default:
return app_runtime::LAUNCH_SOURCE_NONE;