summaryrefslogtreecommitdiffstats
path: root/apps
Commit message (Collapse)AuthorAgeFilesLines
* Updates some includes of chrome_notification_types.hjam@chromium.org2013-07-1111-11/+11
| | | | | | | | TBR=brettw Review URL: https://codereview.chromium.org/18640003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211261 0039d316-1c4b-4281-b951-d872f2087c98
* Move chrome_main_app_mode_mac.mm into apps/app_shimjackhou@chromium.org2013-07-113-0/+409
| | | | | | | | | | | | The DEPS include for chrome_paths_internal is for GetUserDataDirectoryForBrowserBundle, which we plan to remove in favor of including the user_data_dir_ in the bundle's Info.plist. BUG= Review URL: https://chromiumcodereview.appspot.com/18282007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211137 0039d316-1c4b-4281-b951-d872f2087c98
* Don't look up profiles when closing shims.jackhou@chromium.org2013-07-101-11/+8
| | | | | | | | | | | This prevents a crash when shutting down where the profile manager is not available. BUG=257509 Review URL: https://chromiumcodereview.appspot.com/18341026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210836 0039d316-1c4b-4281-b951-d872f2087c98
* Return success for APP_SHIM_LAUNCH_REGISTER_ONLY.jackhou@chromium.org2013-07-102-5/+11
| | | | | | | | | | | | | This is necessary so that the shim will send focus and quit messages. This fixes a bug where app shims launched via the NTP don't focus. BUG=168080 TEST=Start an app from the NTP. Click the app's shim. The app should focus. Review URL: https://chromiumcodereview.appspot.com/18877003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210804 0039d316-1c4b-4281-b951-d872f2087c98
* Make AppLoadService wait for the background page to load before acting.koz@chromium.org2013-07-102-12/+38
| | | | | | | | BUG=258249 Review URL: https://chromiumcodereview.appspot.com/18861009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210797 0039d316-1c4b-4281-b951-d872f2087c98
* Allow Chrome OS login profile to have different default pref valuesbartfab@chromium.org2013-07-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | This CL is a prerequisite for putting Chrome in charge of all power management settings. Since the power management defaults on the login screen differ from those during a user session, the default values of the power prefs should be set differently for the login profile. This CL has no functional changes. It just does the following: 1/ Split chrome::RegisterUserPrefs() into: * chrome::RegisterUserProfilePrefs() * chrome::RegisterLoginProfilePrefs() 2/ Rename all other RegisterUserPrefs() methods to RegisterProfilePrefs(). BUG=241794 TEST=Updated unit and browser tests TBR=jochen@chromium.org (blanket rename of RegisterUserPrefs() in chrome/) TBR=asargent@chromium.org (blanket rename of RegisterUserPrefs() in apps/) TBR=joi@chromium.org (blanket rename of RegisterUserPrefs() in components/) Review URL: https://chromiumcodereview.appspot.com/18199003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210310 0039d316-1c4b-4281-b951-d872f2087c98
* Load an unloaded profile on app shim initiated app launch.jackhou@chromium.org2013-07-049-73/+205
| | | | | | | | | | | | | | | | | | | This fixes a crash when starting an app with an app shim for a profile that is not yet loaded. ExtensionAppShimHandler now cancels the shim launch, loads the profile asynchronously and launches the app when the profile is ready. The existing behavior will start the shim when the app activates. BUG=168080 TEST=Make sure there are multiple profiles. Switch to profile A and close all other windows. Restart Chrome, only profile A should be open. Start an app belonging to profile B with its shim. The app should start without crashing. Review URL: https://chromiumcodereview.appspot.com/16972014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210125 0039d316-1c4b-4281-b951-d872f2087c98
* Rename fileSystem.retainFiles to fileSystem.retainEntries.sammc@chromium.org2013-07-043-6/+6
| | | | | | | | BUG=224684 Review URL: https://chromiumcodereview.appspot.com/18615002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210104 0039d316-1c4b-4281-b951-d872f2087c98
* Remove jeremya from extensions and apps OWNERS files.benwells@chromium.org2013-07-031-1/+0
| | | | | | | | | | | jeremya no longer works full time on chromium; this change is to prevent developers assigning him for review and timing out. BUG=NONE Review URL: https://chromiumcodereview.appspot.com/18606004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210020 0039d316-1c4b-4281-b951-d872f2087c98
* Once-off automatic app shortcut creation no longer creates duplicate shortcuts.mgiuca@chromium.org2013-07-031-2/+4
| | | | | | | | | | | | | | | | | | Fixes Windows-only issue introduced in SVN 207832 where if there were any existing shortcuts, a duplicate would be created. Now detects whether there is already a shortcut for the same profile and app ID, and if so, does not create another one. BUG=253806 TEST=Remove "shortcuts_have_been_created" in preferences, and restart Chrome; should not create duplicate shortcuts. TEST=Install same app in two profiles, delete shortcut in default profile, edit prefs again and restart; should create a second shortcut for the app in the default profile. Review URL: https://chromiumcodereview.appspot.com/17591016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209888 0039d316-1c4b-4281-b951-d872f2087c98
* Hide and show app windows when the shim is hidden/shown.jackhou@chromium.org2013-07-037-0/+37
| | | | | | | | | | | | | | | | | | | This adds a new IPC message for hiding/showing the app. It currently only works while Chrome is shown. Hiding Chrome hides all windows and any time a Chrome window gains focus, Chrome becomes unhidden. To make it work as desired, we'd have to override the built-in NSApp hide/unhide behaviour and manage it ourselves. BUG=168080 TEST=Start an app. Right click its shim -> Hide. The apps windows should disappear with Chrome still visible. Click the shim (or right click -> Show). Th apps windows should reappear in the order they were previously. Review URL: https://chromiumcodereview.appspot.com/17999002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209869 0039d316-1c4b-4281-b951-d872f2087c98
* Windows: Deleting a profile deletes all app shortcuts associated with it.mgiuca@chromium.org2013-07-022-2/+41
| | | | | | | | | | | | | This will search all locations where app shortcuts reside and delete any that open Chrome with the profile being deleted. Mac and Linux have empty stubs, to be completed in a follow-up CL. BUG=236353 Review URL: https://chromiumcodereview.appspot.com/16139004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209658 0039d316-1c4b-4281-b951-d872f2087c98
* Maybe terminate Chrome on last app quit.jackhou@chromium.org2013-07-023-10/+68
| | | | | | | | | | | | | | | | | | | At the moment, when an app is started with a shim, Chrome is started. When the app quits, Chrome continues to run. With this CL, Chrome will be terminated if quitting an app leaves no other apps running, and no browser windows were ever open. BUG=168080 TEST=Start Chrome with an app shim. Quit the shim, Chrome should terminate. TEST=Start Chrome with an app shim. Click on Chrome to start a browser window. Quit the browser window, then quit the shim. Chrome should stay running. Review URL: https://chromiumcodereview.appspot.com/17764007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209626 0039d316-1c4b-4281-b951-d872f2087c98
* Use Mac style app lifetime with app shims.jackhou@chromium.org2013-07-019-28/+105
| | | | | | | | | | | | | | | | | App shims now stay alive after all app windows close. They quit only when the user quits the shim. Clicking on the dock icon when there are no windows launches the app. Focusing a shim with no windows does nothing. BUG=168080 TEST=Start an app, its shim should start. Close all windows of the app, the shim should stay running. Right click the shim icon and select quit, the shim should quit. TEST=Start an app, its shim should start. Uninstall the app, the shim should quit. Review URL: https://chromiumcodereview.appspot.com/17624007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209376 0039d316-1c4b-4281-b951-d872f2087c98
* Move ShellWindow into apps component.benwells@chromium.org2013-07-017-3/+1041
| | | | | | | | | | | | | This involves creating a new delegate type, ShellWindow::Delegate, which is implemented in chrome. BUG=159366 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208927 Review URL: https://chromiumcodereview.appspot.com/16702003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209371 0039d316-1c4b-4281-b951-d872f2087c98
* Add metrics for interactions with the Apps Launcher promo dialog.mad@chromium.org2013-06-294-0/+41
| | | | | | | | BUG=252702 Review URL: https://chromiumcodereview.appspot.com/17226003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209300 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in android_webview/, apps/, ash/.avi@chromium.org2013-06-272-3/+3
| | | | | | | | | | BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/18050008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209025 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 208927 "Move ShellWindow into apps component."asvitkine@chromium.org2013-06-277-1041/+3
| | | | | | | | | | | | | | | | | | | | | | | broke build: ../../chrome/browser/ui/apps/chrome_shell_window_delegate.cc:7:31: fatal error: base/stringprintf.h: No such file or directory (I think it was moved to base/strings/stringprintf.h) > Move ShellWindow into apps component. > > This involves creating a new delegate type, ShellWindow::Delegate, which > is implemented in chrome. > > BUG=159366 > > Review URL: https://chromiumcodereview.appspot.com/16702003 TBR=benwells@chromium.org Review URL: https://codereview.chromium.org/18062007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208929 0039d316-1c4b-4281-b951-d872f2087c98
* Move ShellWindow into apps component.benwells@chromium.org2013-06-277-3/+1041
| | | | | | | | | | | This involves creating a new delegate type, ShellWindow::Delegate, which is implemented in chrome. BUG=159366 Review URL: https://chromiumcodereview.appspot.com/16702003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208927 0039d316-1c4b-4281-b951-d872f2087c98
* Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-06-271-2/+2
| | | | | | | | | | | | Fixes a number of cases either not caught by the automated tool or that have recently regressed. BUG=206189 TBR=darin Review URL: https://chromiumcodereview.appspot.com/17948002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208882 0039d316-1c4b-4281-b951-d872f2087c98
* Place newly created app windows on screen.scheib@chromium.org2013-06-233-21/+89
| | | | | | | | | | | | | | | | | | | | | | | | Application windows with IDs are restored to their previous location, however if the screen bounds have changed they previously might be created offscreen. This change saves the previous screen bounds, and if the current screen is not contained that that area, it moves the window, resizing if needed, to fit in the new screen. This patch was developed by Chaobin Zhang <zhchbin@gmail.com> and review started on https://codereview.chromium.org/17378003/ but has been tested and edited by scheib@chromium.org to remove the "if defined(OS_WIN)". BUG=145752, 225734 TEST=Run https://github.com/GoogleChrome/chrome-app-samples/tree/master/window-state sample, launch windows with ID, move to a second monitor or far right bottom, close window, resize or disconnect other monitor, relaunch that window with ID: verify newly created window is visible. Review URL: https://chromiumcodereview.appspot.com/17564005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208128 0039d316-1c4b-4281-b951-d872f2087c98
* Restructure ExtensionAppShimHandler testing.jackhou@chromium.org2013-06-213-102/+195
| | | | | | | | | | | This puts all dependencies into a inner Delegate class so the test can mock them out. BUG=168080 Review URL: https://chromiumcodereview.appspot.com/17481002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207862 0039d316-1c4b-4281-b951-d872f2087c98
* When app shortcuts are enabled, do a once-off creation of all shortcuts.jackhou@chromium.org2013-06-217-3/+85
| | | | | | | | | | | | | | | | | This adds a boolean (kAppShortcutsEnabled) to user prefs. At startup, ShortcutManager checks the pref and sets the current value. On a transition from false to true, ShortcutManager iterates over all apps and creates shortcuts as if the app is being installed. BUG=249189 TEST=Delete app shortcuts from the OS applications folder. Start Chrome, the shortcuts should be created. Delete the shortcuts again. Restart Chrome, the shortcuts are not created a second time. Review URL: https://chromiumcodereview.appspot.com/17261016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207832 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ProfileForPath in ExtensionAppShimHandler.jackhou@chromium.org2013-06-211-1/+3
| | | | | | | | | | | | Broke this in http://crrev.com/17366002 ProfileManager::GetProfile() takes the full path to the profile, not the base name. BUG=168080 Review URL: https://chromiumcodereview.appspot.com/17524003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207733 0039d316-1c4b-4281-b951-d872f2087c98
* Start and close app shims based on shell windows.jackhou@chromium.org2013-06-203-77/+87
| | | | | | | | | | | | | | | | | | | Start an app's shim when the first shell window is opened instead of when the extension host is created. Close the shim when the last shell window is closed. This makes the app shim more consistent with users' expectations of when the app is 'open'. BUG=168080 TEST=Set --enable-app-shims. Find an app that does not open a shell window on launch. 'Create shortcut' to ensure the app shim exists. Launching the app should not start the shim. Make the app open a shell window, the shim should start. Close the window, the shim should close immediately. Review URL: https://chromiumcodereview.appspot.com/16300003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207483 0039d316-1c4b-4281-b951-d872f2087c98
* Move FetchProfileForDirectory to ExtensionAppShimHandler.jackhou@chromium.org2013-06-207-110/+142
| | | | | | | | | | | | | AppShimHandler now identifies profiles with the profile path. ExtensionAppShimHandler is responsible for looking up and storing the Profile*. This allows app shims to have no associated profile, and be handled by an appropriate handler. BUG=168080 Review URL: https://chromiumcodereview.appspot.com/17366002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207401 0039d316-1c4b-4281-b951-d872f2087c98
* Factor out AppLifetimeMonitor.jackhou@chromium.org2013-06-188-93/+359
| | | | | | | | | | | | | | | | | 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
* Change ApiResourceManager to use ProfileKeyedApi.patrickriordan177@gmail.com2013-06-173-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also finishes SocketUnitTest.Create and fixes the includes for files that were dependent on the includes from api_resource_manager.h BUG=179951 TBR=estade@chromium.org chrome/browser/media_galleries/media_file_system_registry_unittest.cc chrome/browser/renderer_host/pepper/pepper_crx_file_system_message_filter.cc For transitive include and using fix. TBR=yoshiki@chromium.org chrome/browser/task_manager/extension_process_resource_provider.cc For transitive include fix. TBR=pkotwicz@chromium.org chrome/browser/task_manager/extension_process_resource_provider.cc For transitive using fix. TBR=ben@chromium.org chrome/browser/ui/* For transitive include and using fix. TBR=achuith@chromium.org chrome/browser/chromeos/* For transitive include and using fix. Review URL: https://chromiumcodereview.appspot.com/15917015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206783 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite scoped_ptr<T>(NULL) to use the default ctor.dcheng@chromium.org2013-06-141-3/+1
| | | | | | | | | | | | This is the result of running the rewrite_scoped_ptr_ctor_null tool across all files built on Mac. BUG=173286 R=tapted@chromium.org, wez@chromium.org Review URL: https://codereview.chromium.org/16844021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206406 0039d316-1c4b-4281-b951-d872f2087c98
* Update OS X to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-06-131-2/+5
| | | | | | | | | | | OS X fixes and post-Linux cleanup BUG=110610 TBR=darin Review URL: https://codereview.chromium.org/16402003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206189 0039d316-1c4b-4281-b951-d872f2087c98
* The cache was designed to load an extension's stored geometryrockot@chromium.org2013-06-133-13/+14
| | | | | | | | | | | | | | | | from sync only when the extension is first loaded. Because the cache was being lazily created on first access, it would never exist on browser startup when all installed extensions were being loaded. This will attempt to load an extension's geometry from storage on first access as well, if it is not already loaded. BUG=246810 Review URL: https://chromiumcodereview.appspot.com/16012019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206011 0039d316-1c4b-4281-b951-d872f2087c98
* Rename base/hash_tables to base/containers/hash_tables.brettw@chromium.org2013-06-111-1/+1
| | | | | | | | | | | Remove forwarding header BUG= R=avi@chromium.org Review URL: https://codereview.chromium.org/16667019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205584 0039d316-1c4b-4281-b951-d872f2087c98
* Call scoped_refptr<T>::get() rather than relying on implicit "operator T*"rsleevi@chromium.org2013-06-112-5/+4
| | | | | | | | | | | | | | | | | | | This upates calls to bound temporary objects to also use get(). While it has the same semantic equivalence to the existing code, this generally represents a dangerous pattern - indeed, part of the whole motivation for this change is to make this anti-pattern very visible to authors. This change simply updates all of the call sites, to allow the "operator T*" to be removed and preventing new instances. The existing instances will then be reviewed for "suspicious" changes and updated to use/pass scoped_refptr<T> rather than T*, as appropriate. BUG=110610 TBR=darin Review URL: https://codereview.chromium.org/15984016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205560 0039d316-1c4b-4281-b951-d872f2087c98
* Pass command line arguments through with --load-and-launch-app.benwells@chromium.org2013-06-113-24/+103
| | | | | | | | | | | This lets uninstalled unpacked apps be started via this flag and passed files to process. BUG=246510 Review URL: https://chromiumcodereview.appspot.com/16357005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205503 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of strings headers in apps/.avi@chromium.org2013-06-113-4/+4
| | | | | | | | | | BUG=247723 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/15855014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205417 0039d316-1c4b-4281-b951-d872f2087c98
* Display the list of retained files in the extension permissions dialog.sammc@chromium.org2013-06-084-7/+46
| | | | | | | | | | | | | | | | | | | | 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
* Use a direct include of utf_string_conversions.h in android_webview/, apps/, ↵avi@chromium.org2013-06-071-1/+1
| | | | | | | | | | | ash/, base/. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/15735027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204874 0039d316-1c4b-4281-b951-d872f2087c98
* Create app shim on app install.jackhou@chromium.org2013-06-071-2/+8
| | | | | | | | BUG=168080 Review URL: https://chromiumcodereview.appspot.com/15965005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204756 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 204487 "Factor out AppLifetimeMonitor."mad@chromium.org2013-06-068-329/+68
| | | | | | | | | | | | | | | | | | | | | | | 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-068-68/+329
| | | | | | | | | | | | | | | 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
* Clean up async app launcher enabled checks.calamity@chromium.org2013-06-042-66/+8
| | | | | | | | | | | The app launcher enable state no longer requires a registry check so we can remove all of the asynchronous apis that were in place for it. BUG= Review URL: https://chromiumcodereview.appspot.com/16172005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203921 0039d316-1c4b-4281-b951-d872f2087c98
* Apps with "display_in_launcher": false no longer have shortcuts installed.mgiuca@chromium.org2013-06-011-1/+2
| | | | | | | | | | | This fixes the "Google Wallet Service" shortcuts being automatically installed into the Start Menu on Windows and Linux. BUG=243877 Review URL: https://chromiumcodereview.appspot.com/15982005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203581 0039d316-1c4b-4281-b951-d872f2087c98
* Move application restart and relaunch code out of ExtensionService.benwells@chromium.org2013-05-319-0/+406
| | | | | | | | | | | This apps specific code now lives in AppLoadService in the apps/ component. BUG=159366, 159265, 175381 Review URL: https://chromiumcodereview.appspot.com/15947007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203382 0039d316-1c4b-4281-b951-d872f2087c98
* Start app shim when app launched.jackhou@chromium.org2013-05-3110-66/+166
| | | | | | | | | | | | | | | | ExtensionAppShimHandler launches the relevant shim in response to NOTIFICATION_EXTENSION_HOST_CREATED. A new field is added to the LaunchApp IPC message: launch_now. This indicates whether to launch the app immediately. This prevents the shim launching the app again. BUG=168080 TEST=Find an app that has an app shim bundle. Launch it from the launcher or new tab page. The shim should start. Review URL: https://chromiumcodereview.appspot.com/14579006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203309 0039d316-1c4b-4281-b951-d872f2087c98
* Use base::MessageLoop in more files.xhwang@chromium.org2013-05-301-1/+1
| | | | | | | | | | | These are either missed in the first pass, or added after the first pass. TBR=thestig@chromium.org BUG=236029 Review URL: https://codereview.chromium.org/16092013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203259 0039d316-1c4b-4281-b951-d872f2087c98
* Close all windows when app shim quits.jackhou@chromium.org2013-05-309-5/+49
| | | | | | | | | | | | | | | | This adds a new IPC message QuitApp which is sent by the shim when the user quits the shim (right click -> Quit). The AppShimHost responds by closing all windows associated with the app. The shim actually quits when the extension eventually closes and AppShimHost closes the channel to the shim. BUG=168080 TEST=Start an app using its shim. Right click the app in the dock and select quit. The shell windows of that app should close. Review URL: https://chromiumcodereview.appspot.com/14579005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203098 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor extension handling code from AppShimHost into ExtensionAppShimHandler.jackhou@chromium.org2013-05-2911-141/+391
| | | | | | | | | | | | | AppShimHost is now confined to interacting with the app shim and passing events to AppShimHandlers. ExtensionAppShimHandler becomes the default handler for app shim events. BUG=168080 TEST=There should be no behavior change with this refactor. Review URL: https://chromiumcodereview.appspot.com/15269003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202791 0039d316-1c4b-4281-b951-d872f2087c98
* Windows: When an app is updated and its name changes, recreate shortcuts.mgiuca@chromium.org2013-05-291-1/+5
| | | | | | | | | | | | This searches for shortcuts in the usual locations containing the app's old name, deletes them, and creates new shortcuts in the places where there were pre-existing shortcuts. BUG=153981 Review URL: https://chromiumcodereview.appspot.com/14993013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202712 0039d316-1c4b-4281-b951-d872f2087c98
* Make tapted an owner of src/apps/app_shim.tapted@chromium.org2013-05-271-1/+1
| | | | | | | | | BUG=None NOTRY=true Review URL: https://chromiumcodereview.appspot.com/15936005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202376 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for persistent file access in apps.sammc@chromium.org2013-05-259-45/+913
| | | | | | | | | | | | | 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