From ddb1e5ae096bd91da721887fd55e68c603bf7067 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Mon, 13 Dec 2010 20:10:45 +0000 Subject: Even more virtual method deinlining. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5741001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69041 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_closeable_state_watcher.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'chrome/browser/tab_closeable_state_watcher.h') diff --git a/chrome/browser/tab_closeable_state_watcher.h b/chrome/browser/tab_closeable_state_watcher.h index 8ee81c3..b77a539 100644 --- a/chrome/browser/tab_closeable_state_watcher.h +++ b/chrome/browser/tab_closeable_state_watcher.h @@ -32,15 +32,11 @@ class TabCloseableStateWatcher { // - setting up tab's context menu to determine if "Close tab" should // should be enabled // - determining if accelerator keys to close tab should be processed - virtual bool CanCloseTab(const Browser* browser) const { - return true; - } + virtual bool CanCloseTab(const Browser* browser) const; // Called from Browser::IsClosingPermitted which is in turn called from // Browser::ShouldCloseWindow to check if |browser| can be closed. - virtual bool CanCloseBrowser(Browser* browser) { - return true; - } + virtual bool CanCloseBrowser(Browser* browser); // Called from Browser::CancelWindowClose when closing of window is canceled. // Watcher is potentially interested in this, especially when the closing of -- cgit v1.1