diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-21 00:05:41 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-21 00:05:41 +0000 |
commit | 1410fb00866fd282414a32e04b300230a51bbe1c (patch) | |
tree | 8a737a4414af262de364b3e56af898e990d9dc23 /ash/shell_delegate.h | |
parent | 9fe2d0edd3d21c60886ebeb449fc057ace9ebe76 (diff) | |
download | chromium_src-1410fb00866fd282414a32e04b300230a51bbe1c.zip chromium_src-1410fb00866fd282414a32e04b300230a51bbe1c.tar.gz chromium_src-1410fb00866fd282414a32e04b300230a51bbe1c.tar.bz2 |
ash/chromeos: Defer creating launcher until after login.
This fixes several issues (blank titles in context menu,
missing icons, pinned apps not getting restored) caused by
launcher-related code that was initialized at startup and
cached the pre-login profile. This change makes us defer
initialization of the launcher until after the user has
logged in when running on Chrome OS devices.
To test:
- Logged in on a Chrome OS device and checked that
previously-pinned apps appear in the launcher and that
non-component extensions have icons and titles in their
context menus.
- Killed the Chrome process and checked that the launcher is
visible when it restarts.
- Ran Chrome and ash_shell on a Linux workstation and
checked that the launcher is present.
BUG=118129,118945
TEST=manual: see above
Review URL: https://chromiumcodereview.appspot.com/9733024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell_delegate.h')
-rw-r--r-- | ash/shell_delegate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ash/shell_delegate.h b/ash/shell_delegate.h index 8e9076e..9744190 100644 --- a/ash/shell_delegate.h +++ b/ash/shell_delegate.h @@ -49,6 +49,10 @@ class ASH_EXPORT ShellDelegate { // Invoked to create a new status area. Can return NULL. virtual views::Widget* CreateStatusArea() = 0; + // Can we create the launcher yet? In some cases, we may need to defer it + // until e.g. a user has logged in and their profile has been loaded. + virtual bool CanCreateLauncher() = 0; + #if defined(OS_CHROMEOS) // Invoked when a user uses Ctrl-Shift-L to lock the screen. virtual void LockScreen() = 0; |