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

Unified Diff: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc

Issue 7545021: Unify infobars' link-opening behavior to respect user-requested dispositions and append the Googl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 5 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 | « no previous file | chrome/browser/geolocation/chrome_geolocation_permission_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc
===================================================================
--- chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc (revision 94544)
+++ chrome/browser/custom_handlers/register_protocol_handler_infobar_delegate.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
+#include "chrome/browser/google/google_util.h"
#include "chrome/common/url_constants.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "grit/generated_resources.h"
@@ -83,8 +84,9 @@
bool RegisterProtocolHandlerInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
- // Ignore the click dispostion and always open in a new top level tab.
- tab_contents_->OpenURL(GURL(chrome::kLearnMoreRegisterProtocolHandlerURL),
- GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
+ tab_contents_->OpenURL(google_util::AppendGoogleLocaleParam(GURL(
+ chrome::kLearnMoreRegisterProtocolHandlerURL)), GURL(),
+ (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
+ PageTransition::LINK);
return false;
}
« no previous file with comments | « no previous file | chrome/browser/geolocation/chrome_geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698