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

Unified Diff: chrome/browser/prerender/prerender_manager.cc

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months 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/prerender/prerender_contents.cc ('k') | chrome/browser/tab_contents/background_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_manager.cc
diff --git a/chrome/browser/prerender/prerender_manager.cc b/chrome/browser/prerender/prerender_manager.cc
index cfdeb2b7e3275303e05fdd9f60131b2f160311d4..146af7a6f41899d8108159e01af94fa970050506 100644
--- a/chrome/browser/prerender/prerender_manager.cc
+++ b/chrome/browser/prerender/prerender_manager.cc
@@ -191,7 +191,7 @@ class PrerenderManager::OnCloseWebContentsDeleter
ScheduleWebContentsForDeletion(false);
}
- bool ShouldSuppressDialogs() override {
+ bool ShouldSuppressDialogs(WebContents* source) override {
davidben 2014/11/07 19:08:26 Nit: May as well add a DCHECK_EQ(tab_, source);
// Use this as a proxy for getting statistics on how often we fail to honor
// the beforeunload event.
suppressed_dialog_ = true;
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/tab_contents/background_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698