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

Unified Diff: chrome/browser/ui/gtk/web_dialog_gtk.cc

Issue 10868116: Pass result of blockage across content API when new tab blocked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
Index: chrome/browser/ui/gtk/web_dialog_gtk.cc
===================================================================
--- chrome/browser/ui/gtk/web_dialog_gtk.cc (revision 154307)
+++ chrome/browser/ui/gtk/web_dialog_gtk.cc (working copy)
@@ -161,16 +161,16 @@
return WebDialogWebContentsDelegate::OpenURLFromTab(source, params);
}
-void WebDialogGtk::AddNewContents(content::WebContents* source,
+bool WebDialogGtk::AddNewContents(content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
const gfx::Rect& initial_pos,
bool user_gesture) {
if (delegate_ && delegate_->HandleAddNewContents(
source, new_contents, disposition, initial_pos, user_gesture)) {
- return;
+ return true;
}
- WebDialogWebContentsDelegate::AddNewContents(
+ return WebDialogWebContentsDelegate::AddNewContents(
source, new_contents, disposition, initial_pos, user_gesture);
}

Powered by Google App Engine
This is Rietveld 408576698