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

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

Issue 8343070: Support dispositon attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Try again Created 9 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/ui/browser.h ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 30b0471e693c2d16a7f03d70f7630cd547fbde2b..2f79c40b7efebc804bdfcdd75ca949b44133cc34 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -2572,7 +2572,8 @@ void Browser::RegisterIntentHandlerHelper(TabContents* tab,
const string16& action,
const string16& type,
const string16& href,
- const string16& title) {
+ const string16& title,
+ const string16& disposition) {
TabContentsWrapper* tcw = TabContentsWrapper::GetCurrentWrapperForContents(
tab);
if (!tcw || tcw->profile()->IsOffTheRecord())
@@ -2592,6 +2593,8 @@ void Browser::RegisterIntentHandlerHelper(TabContents* tab,
service.action = action;
service.type = type;
service.title = title;
+ service.setDisposition(disposition);
+
InfoBarTabHelper* infobar_helper = tcw->infobar_tab_helper();
infobar_helper->AddInfoBar(new RegisterIntentHandlerInfoBarDelegate(
infobar_helper,
@@ -3955,8 +3958,9 @@ void Browser::RegisterIntentHandler(TabContents* tab,
const string16& action,
const string16& type,
const string16& href,
- const string16& title) {
- RegisterIntentHandlerHelper(tab, action, type, href, title);
+ const string16& title,
+ const string16& disposition) {
+ RegisterIntentHandlerHelper(tab, action, type, href, title, disposition);
}
void Browser::WebIntentDispatch(TabContents* tab,
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | content/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698