diff options
author | cylee <cylee@chromium.org> | 2014-11-20 10:26:06 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-20 18:26:44 +0000 |
commit | 96cd75fce7e9523041c86a15b9916c8d57c99ac3 (patch) | |
tree | 9c5af3c24cbf6c114e89822c2dab88ab04db1c4e /extensions/browser/api | |
parent | fcefc83beb698980c4c3418374837b3efc6fb7b1 (diff) | |
download | chromium_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.cc | 13 |
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; |