diff options
author | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 03:16:57 +0000 |
---|---|---|
committer | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-25 03:16:57 +0000 |
commit | 343dc066bfe7fdef978142bd47753ba28536219c (patch) | |
tree | b918d2b7d52a91f1546e4cefcee9b38b24620676 /chrome/browser/sessions/tab_restore_service.cc | |
parent | 5f6259d5aa9bb29f15db051a3c6be3d78b82e1db (diff) | |
download | chromium_src-343dc066bfe7fdef978142bd47753ba28536219c.zip chromium_src-343dc066bfe7fdef978142bd47753ba28536219c.tar.gz chromium_src-343dc066bfe7fdef978142bd47753ba28536219c.tar.bz2 |
Handle more browser commands in ash.
This CL modifies the shell accelerator controller to handle the shortcuts for
the following browser commands so that they work with no browser window shown.
- IDC_NEW_TAB
- IDC_RESTORE_TAB
- IDC_SHOW_BOOKMARK_MANAGER
BUG=124232,120642
TEST=Checked all the shortcuts worked properly with no browser window shown. aura_shell_unittests
Review URL: https://chromiumcodereview.appspot.com/10414064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sessions/tab_restore_service.cc')
-rw-r--r-- | chrome/browser/sessions/tab_restore_service.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/sessions/tab_restore_service.cc b/chrome/browser/sessions/tab_restore_service.cc index a6ed52f..dfba1af 100644 --- a/chrome/browser/sessions/tab_restore_service.cc +++ b/chrome/browser/sessions/tab_restore_service.cc @@ -474,6 +474,10 @@ void TabRestoreService::LoadTabsFromLastSession() { &load_consumer_); } +bool TabRestoreService::IsLoaded() const { + return !(load_state_ & (NOT_LOADED | LOADING)); +} + void TabRestoreService::Shutdown() { if (backend()) Save(); |