Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: chrome/browser/tab_closeable_state_watcher.h

Issue 5741001: Even more virtual method deinlining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (windows) Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/tab_closeable_state_watcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 8ee81c3a6a2c937ee8cee0db443ef7a3457a7c3a..b77a539f717a6e6bcdb38cc79f2dad3684dbac86 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/tab_closeable_state_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698