diff options
author | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-14 15:23:43 +0000 |
---|---|---|
committer | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-14 15:23:43 +0000 |
commit | a8eff106de173d7b5b20946ad497198a0eefec8d (patch) | |
tree | 6c0da9d71f912d00101410d9d0d00b55757b131b /chrome/browser/browser.cc | |
parent | 6420421e6f15f25891c88661431ce9483ccfdba7 (diff) | |
download | chromium_src-a8eff106de173d7b5b20946ad497198a0eefec8d.zip chromium_src-a8eff106de173d7b5b20946ad497198a0eefec8d.tar.gz chromium_src-a8eff106de173d7b5b20946ad497198a0eefec8d.tar.bz2 |
Added undo tab closing item to Tab menu.
Review URL: http://codereview.chromium.org/62151
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 1963361..d29d7ce 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -576,6 +576,11 @@ void Browser::ReplaceRestoredTab( restored_controller); } +bool Browser::CanRestoreTab() { + TabRestoreService* service = profile_->GetTabRestoreService(); + return service && !service->entries().empty(); +} + void Browser::ShowSingleDOMUITab(const GURL& url) { // See if we already have a tab with the given URL and select it if so. for (int i = 0; i < tabstrip_model_.count(); i++) { |