summaryrefslogtreecommitdiffstats
path: root/apps/app_restore_service.h
Commit message (Collapse)AuthorAgeFilesLines
* Move ShellWindowRegistry to appsbenwells@chromium.org2013-08-091-1/+1
| | | | | | | | | | TBR=sky BUG=159366 Review URL: https://chromiumcodereview.appspot.com/22642008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216658 0039d316-1c4b-4281-b951-d872f2087c98
* Factor out AppLifetimeMonitor.jackhou@chromium.org2013-06-181-17/+13
| | | | | | | | | | | | | | | | | AppLifetimeMonitor listens to extension host notifications and observes ShellWindowRegistry. It sends out notifications when: - an app starts - the first shell window opens - the last shell window closes - the app stops BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204487 Review URL: https://chromiumcodereview.appspot.com/16412002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206988 0039d316-1c4b-4281-b951-d872f2087c98
* Display the list of retained files in the extension permissions dialog.sammc@chromium.org2013-06-081-0/+6
| | | | | | | | | | | | | | | | | | | | The dialog allows the user to revoke access for the app, restarting it if it's currently running. If the app/extension has not retained access to any files, the dialog is unchanged. [Mac] XIB change: - Enable "Show Vertical Scroller" for the scroll view. Dialog screenshots: https://code.google.com/p/chromium/issues/detail?id=224684#c6 BUG=224684 TEST=Install an app that uses chrome.fileSystem.retainEntry and open a file with it. In chrome://extensions/ click the permissions link for that app. The filename should be listed. Review URL: https://chromiumcodereview.appspot.com/15943007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205028 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 204487 "Factor out AppLifetimeMonitor."mad@chromium.org2013-06-061-12/+8
| | | | | | | | | | | | | | | | | | | | | | | Was causing BrowserCommandControllerTest.IncognitoModeOnSigninAllowedPrefChange to crash. > Factor out AppLifetimeMonitor. > > AppLifetimeMonitor listens to extension host notifications and observes > ShellWindowRegistry. It sends out notifications when: > - an app starts > - the first shell window opens > - the last shell window closes > - the app stops > > BUG= > > Review URL: https://chromiumcodereview.appspot.com/16412002 TBR=jackhou@chromium.org Review URL: https://codereview.chromium.org/16554002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204495 0039d316-1c4b-4281-b951-d872f2087c98
* Factor out AppLifetimeMonitor.jackhou@chromium.org2013-06-061-8/+12
| | | | | | | | | | | | | | | AppLifetimeMonitor listens to extension host notifications and observes ShellWindowRegistry. It sends out notifications when: - an app starts - the first shell window opens - the last shell window closes - the app stops BUG= Review URL: https://chromiumcodereview.appspot.com/16412002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204487 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for persistent file access in apps.sammc@chromium.org2013-05-251-10/+1
| | | | | | | | | | | | | This replaces chrome.fileSystem.getEntry(By)Id with retainEntry, restoreEntry and isRestorable, which enable restoring file access after an app is closed for apps with the fileSystem.retainFiles permission. Retained files are evicted by LRU, with a maximum of 500 retained files. BUG=224684 Review URL: https://chromiumcodereview.appspot.com/14607023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202276 0039d316-1c4b-4281-b951-d872f2087c98
* Remove references to Profile from browser_context_keyed_service.phajdan.jr@chromium.org2013-05-221-2/+2
| | | | | | | | | BUG=227219 R=joi@chromium.org Review URL: https://codereview.chromium.org/15517005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201634 0039d316-1c4b-4281-b951-d872f2087c98
* Move ProfileKeyedService infrastructure to a componentphajdan.jr@chromium.org2013-05-201-1/+1
| | | | | | | | | | | Renames of the classes and methods will follow in separate patch(es). BUG=227219 R=erg@chromium.org, joi@chromium.org Review URL: https://codereview.chromium.org/14743010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201167 0039d316-1c4b-4281-b951-d872f2087c98
* Restart apps that don't listen to onRestarted() by sending them onLaunched().koz@chromium.org2013-05-171-1/+16
| | | | | | | | | | | | | | | | | | | We only do this if the app had windows opened the last time it was running, otherwise apps that were running but had no windows may restart by opening windows, which manifests as apps coming back on a restart after the user already closed them. BUG=230667,167740,162057 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199406 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=199409 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199970 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=200016 Review URL: https://chromiumcodereview.appspot.com/14878008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200779 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 199970 "Restart apps that don't listen to onRestarted() b..."danakj@chromium.org2013-05-141-13/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This breaks unit_tests:BrowserCommandControllerTest.IncognitoModeOnSigninAllowedPrefChange in debug builds. The waterfall seems to not be running with DCHECKs on so this passed by unnoticed, but it causes failures in the CQ which is using DCHECKs. See also crbug.com/240718 Here's a failure build: http://build.chromium.org/p/tryserver.chromium/builders/linux_rel/builds/127560 Local bisect found this test breaks after this CL but not before. > Restart apps that don't listen to onRestarted() by sending them onLaunched(). > > We only do this if the app had windows opened the last time it was running, > otherwise apps that were running but had no windows may restart by opening > windows, which manifests as apps coming back on a restart after the user > already closed them. > > BUG=230667,167740,162057 > > Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199406 > Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=199409 > > Review URL: https://chromiumcodereview.appspot.com/14878008 TBR=koz@chromium.org Review URL: https://codereview.chromium.org/15031005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200016 0039d316-1c4b-4281-b951-d872f2087c98
* Restart apps that don't listen to onRestarted() by sending them onLaunched().koz@chromium.org2013-05-141-1/+13
| | | | | | | | | | | | | | | | We only do this if the app had windows opened the last time it was running, otherwise apps that were running but had no windows may restart by opening windows, which manifests as apps coming back on a restart after the user already closed them. BUG=230667,167740,162057 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199406 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=199409 Review URL: https://chromiumcodereview.appspot.com/14878008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199970 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 199406 "Restart apps that don't listen to onRestarted() b..."tzik@chromium.org2013-05-101-13/+1
| | | | | | | | | | | | | | | | | | | > Restart apps that don't listen to onRestarted() by sending them onLaunched(). > > We only do this if the app had windows opened the last time it was running, > otherwise apps that were running but had no windows may restart by opening > windows, which manifests as apps coming back on a restart after the user > already closed them. > > BUG=230667,167740,162057 > > Review URL: https://chromiumcodereview.appspot.com/14878008 TBR=koz@chromium.org Review URL: https://codereview.chromium.org/14711009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199409 0039d316-1c4b-4281-b951-d872f2087c98
* Restart apps that don't listen to onRestarted() by sending them onLaunched().koz@chromium.org2013-05-101-1/+13
| | | | | | | | | | | | | We only do this if the app had windows opened the last time it was running, otherwise apps that were running but had no windows may restart by opening windows, which manifests as apps coming back on a restart after the user already closed them. BUG=230667,167740,162057 Review URL: https://chromiumcodereview.appspot.com/14878008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199406 0039d316-1c4b-4281-b951-d872f2087c98
* [win8] Show a prompt before relaunching Chrome in Windows 8 mode while ↵tapted@chromium.org2013-04-041-0/+4
| | | | | | | | | | | | | | | | | | | | | 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
* apps: Silence cpplint warnings.tfarina@chromium.org2013-03-041-3/+6
| | | | | | | | | | | BUG=None TEST=cpplint apps/ are clean. R=benwells@chromium.org Review URL: https://chromiumcodereview.appspot.com/12377067 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185828 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 184900mpearson@chromium.org2013-02-271-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think this revert, oddly, caused a series of failures on chromeos bots http://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20x64/builds/30936 like the top of the failures that it was supposed to have solved. browser_tests browser_tests failed 3 Flakiness dashboard ( 44 mins, 15 secs ) stdio FileSystemApiOpenBackgroundTest FileSystemApiSaveBackgroundTest FileAccessIsSavedToPrefs Perhaps it wasn't the root cause after all. This re-landing is an attempt to investigate what's going on here. I reverted another change in the original blamelist an attempt to investigate further. https://codereview.chromium.org/12334129/ I also tried disabling these tests to get more green in the tree. That hasn't kicked in yet, oddly. https://codereview.chromium.org/12334128/ > Revert "Track and persist what file entries an extension has access to." > > This reverts commit 4fe61bc24f343a6a1381a782dec4fb45b2f6c437 (r184878). > > This was causing test failures in FileSystemApiOpenBackgroundTest and > FileSystemApiSaveBackgroundTest on linux (example > http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Tests%20%28dbg%29%281%29&number=23657 ) > > TBR=koz@chromium.org > BUG= > > Review URL: https://codereview.chromium.org/12319140 TBR=iannucci@chromium.org Review URL: https://codereview.chromium.org/12317156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185007 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Track and persist what file entries an extension has access to."iannucci@chromium.org2013-02-271-12/+3
| | | | | | | | | | | | | | | This reverts commit 4fe61bc24f343a6a1381a782dec4fb45b2f6c437 (r184878). This was causing test failures in FileSystemApiOpenBackgroundTest and FileSystemApiSaveBackgroundTest on linux (example http://build.chromium.org/p/chromium.linux/buildstatus?builder=Linux%20Tests%20%28dbg%29%281%29&number=23657 ) TBR=koz@chromium.org BUG= Review URL: https://codereview.chromium.org/12319140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184900 0039d316-1c4b-4281-b951-d872f2087c98
* Track and persist what file entries an extension has access to.koz@chromium.org2013-02-271-3/+12
| | | | | | | | | | | | | Note this change doesn't re-grant permissions to the extensions at any point. Subsequent patches will cause chrome to restore access to the file entries an extension had in the case of an unexpected crash (ie: onRestarted()). BUG=165832 Review URL: https://chromiumcodereview.appspot.com/11857009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184878 0039d316-1c4b-4281-b951-d872f2087c98
* Create top level apps component and move some apps code there.benwells@chromium.org2013-01-221-0/+48
This is a small patch to begin the process of pulling apps code out of chrome and the extensions system. BUG=159366 Review URL: https://chromiumcodereview.appspot.com/11829055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177968 0039d316-1c4b-4281-b951-d872f2087c98