diff options
author | sashab@chromium.org <sashab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-24 13:26:30 +0000 |
---|---|---|
committer | sashab@chromium.org <sashab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-24 13:26:30 +0000 |
commit | 982ba2cf07068dd32d2f5e98cb2c6e771a342490 (patch) | |
tree | d93978597cb93928e665c91c9bb54b320b27fb80 /apps/app_load_service.h | |
parent | 7eb111d675e1f53c3386820f11cc55b7d709c819 (diff) | |
download | chromium_src-982ba2cf07068dd32d2f5e98cb2c6e771a342490.zip chromium_src-982ba2cf07068dd32d2f5e98cb2c6e771a342490.tar.gz chromium_src-982ba2cf07068dd32d2f5e98cb2c6e771a342490.tar.bz2 |
Add RestartApplicationIfRunning to AppLoadService
Added a helper method to AppLoadService to fix a TODO in the App Info
Dialog. This method is equivalent to calling RestartApplication if the
app is Restorable (i.e. running). Also updated the callsite in
AppInfoPermissionsTab.
BUG=NONE
TBR=miket
Review URL: https://codereview.chromium.org/410803003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_load_service.h')
-rw-r--r-- | apps/app_load_service.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/app_load_service.h b/apps/app_load_service.h index c79915d..1f49980 100644 --- a/apps/app_load_service.h +++ b/apps/app_load_service.h @@ -48,6 +48,9 @@ class AppLoadService : public KeyedService, // event. void RestartApplication(const std::string& extension_id); + // Reload the application with the given id if it is currently running. + void RestartApplicationIfRunning(const std::string& extension_id); + // Loads (or reloads) the app with |extension_path|, then launches it. Any // command line parameters from |command_line| will be passed along via // launch parameters. Returns true if loading the extension has begun |