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

Unified Diff: chrome/browser/ui/browser_tab_strip_model_delegate.cc

Issue 23835007: DevTools: Do not close devtools if there are dirty files in workspace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revisiting naming & comments Created 7 years, 1 month 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
Index: chrome/browser/ui/browser_tab_strip_model_delegate.cc
diff --git a/chrome/browser/ui/browser_tab_strip_model_delegate.cc b/chrome/browser/ui/browser_tab_strip_model_delegate.cc
index 43a8d51965ad90f840c189528b2c6cb151cf71fd..665d36fb9371e4b0d19a8c337d1d34d19d473194 100644
--- a/chrome/browser/ui/browser_tab_strip_model_delegate.cc
+++ b/chrome/browser/ui/browser_tab_strip_model_delegate.cc
@@ -137,6 +137,11 @@ bool BrowserTabStripModelDelegate::RunUnloadListenerBeforeClosing(
return Browser::RunUnloadEventsHelper(contents);
}
+bool BrowserTabStripModelDelegate::ShouldRunUnloadListenerBeforeClosing(
+ content::WebContents* contents) {
+ return Browser::ShouldRunUnloadEventsHelper(contents);
+}
+
bool BrowserTabStripModelDelegate::CanBookmarkAllTabs() const {
return chrome::CanBookmarkAllTabs(browser_);
}

Powered by Google App Engine
This is Rietveld 408576698