summaryrefslogtreecommitdiffstats
path: root/apps/app_load_service.h
diff options
context:
space:
mode:
authorsashab@chromium.org <sashab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-24 13:26:30 +0000
committersashab@chromium.org <sashab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-24 13:26:30 +0000
commit982ba2cf07068dd32d2f5e98cb2c6e771a342490 (patch)
treed93978597cb93928e665c91c9bb54b320b27fb80 /apps/app_load_service.h
parent7eb111d675e1f53c3386820f11cc55b7d709c819 (diff)
downloadchromium_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.h3
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