summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_closeable_state_watcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_closeable_state_watcher.h')
-rw-r--r--chrome/browser/tab_closeable_state_watcher.h8
1 files changed, 2 insertions, 6 deletions
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