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

Unified Diff: chrome/browser/ui/intents/web_intent_inline_disposition_delegate.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/intents/web_intent_inline_disposition_delegate.cc
===================================================================
--- chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc (revision 153532)
+++ chrome/browser/ui/intents/web_intent_inline_disposition_delegate.cc (working copy)
@@ -62,7 +62,7 @@
return source;
}
-void WebIntentInlineDispositionDelegate::AddNewContents(
+bool WebIntentInlineDispositionDelegate::AddNewContents(
content::WebContents* source,
content::WebContents* new_contents,
WindowOpenDisposition disposition,
@@ -75,8 +75,8 @@
// requested.
disposition =
disposition == NEW_BACKGROUND_TAB ? disposition : NEW_FOREGROUND_TAB;
- chrome::AddWebContents(browser_, NULL, new_contents, disposition, initial_pos,
- user_gesture);
+ return chrome::AddWebContents(
+ browser_, NULL, new_contents, disposition, initial_pos, user_gesture);
}
void WebIntentInlineDispositionDelegate::LoadingStateChanged(

Powered by Google App Engine
This is Rietveld 408576698