summaryrefslogtreecommitdiffstats
path: root/apps/app_restore_service.h
diff options
context:
space:
mode:
authortapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-04 08:32:39 +0000
committertapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-04 08:32:39 +0000
commit24ced7dc02d290de10b00379c485584ccc896ec3 (patch)
tree8ddefb277c4a67ba2449c973b668868e503ced96 /apps/app_restore_service.h
parentbda506cad679d2a9800f5a8eb41da9fb676ee1b9 (diff)
downloadchromium_src-24ced7dc02d290de10b00379c485584ccc896ec3.zip
chromium_src-24ced7dc02d290de10b00379c485584ccc896ec3.tar.gz
chromium_src-24ced7dc02d290de10b00379c485584ccc896ec3.tar.bz2
[win8] Show a prompt before relaunching Chrome in Windows 8 mode while packaged apps are running.
Introduces ShellWindowRegistry::IsShellWindowRegisteredInAnyProfile to help determine if packaged apps are currently running. Intercepts the IDC_WIN8_METRO_RESTART command and shows a modal dialog box if packaged apps are running to confirm that the user is OK with their packaged apps closing. Ensures apps with a relaunch handler are not relaunched when restarting in metro mode. BUG=222297 TEST=Launch a packaged app in desktop mode and select 'Relaunch Chrome in Windows 8 mode' from the hotdog menu. A prompt should appear confirming that your Chrome apps will close if you continue. If no packaged apps are running, no prompt should appear. Review URL: https://chromiumcodereview.appspot.com/12566039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/app_restore_service.h')
-rw-r--r--apps/app_restore_service.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_restore_service.h b/apps/app_restore_service.h
index a308c31..f27c83c 100644
--- a/apps/app_restore_service.h
+++ b/apps/app_restore_service.h
@@ -31,6 +31,10 @@ namespace apps {
class AppRestoreService : public ProfileKeyedService,
public content::NotificationObserver {
public:
+ // Returns true if apps should be restored on the current platform, given
+ // whether this new browser process launched due to a restart.
+ static bool ShouldRestoreApps(bool is_browser_restart);
+
explicit AppRestoreService(Profile* profile);
// Restart apps that need to be restarted and clear the "running" preference