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

Unified Diff: chrome/browser/tab_contents/insecure_content_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 | « chrome/browser/plugin_observer.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/insecure_content_infobar_delegate.cc
===================================================================
--- chrome/browser/tab_contents/insecure_content_infobar_delegate.cc (revision 94544)
+++ chrome/browser/tab_contents/insecure_content_infobar_delegate.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/tab_contents/insecure_content_infobar_delegate.h"
#include "base/metrics/histogram.h"
+#include "chrome/browser/google/google_util.h"
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/common/render_messages.h"
#include "content/common/page_transition_types.h"
@@ -77,8 +78,9 @@
bool InsecureContentInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
- tab_contents_->tab_contents()->OpenURL(GURL(
- "https://www.google.com/support/chrome/bin/answer.py?answer=1342714"),
+ tab_contents_->tab_contents()->OpenURL(
+ google_util::AppendGoogleLocaleParam(GURL(
+ "https://www.google.com/support/chrome/bin/answer.py?answer=1342714")),
GURL(), (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
PageTransition::LINK);
return false;
« no previous file with comments | « chrome/browser/plugin_observer.cc ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698