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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.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/views/tabs/tab_drag_controller.cc
===================================================================
--- chrome/browser/ui/views/tabs/tab_drag_controller.cc (revision 154307)
+++ chrome/browser/ui/views/tabs/tab_drag_controller.cc (working copy)
@@ -557,7 +557,7 @@
view_->Update();
}
-void TabDragController::AddNewContents(WebContents* source,
+bool TabDragController::AddNewContents(WebContents* source,
WebContents* new_contents,
WindowOpenDisposition disposition,
const gfx::Rect& initial_pos,
@@ -567,9 +567,10 @@
// Theoretically could be called while dragging if the page tries to
// spawn a window. Route this message back to the browser in most cases.
if (source_tab_drag_data()->original_delegate) {
- source_tab_drag_data()->original_delegate->AddNewContents(
+ return source_tab_drag_data()->original_delegate->AddNewContents(
source, new_contents, disposition, initial_pos, user_gesture);
}
+ return true;
}
void TabDragController::LoadingStateChanged(WebContents* source) {

Powered by Google App Engine
This is Rietveld 408576698