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

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

Issue 1361253002: Separate the URL of an infobar link with clicking on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting Created 5 years, 3 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/startup/obsolete_system_infobar_delegate.cc
diff --git a/chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc b/chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc
index 233451f423bd548dc72cc7a180803c609f70bfa6..379f62ed6907c0aa3519ba57a591dd7938e05692 100644
--- a/chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc
+++ b/chrome/browser/ui/startup/obsolete_system_infobar_delegate.cc
@@ -54,17 +54,10 @@ base::string16 ObsoleteSystemInfoBarDelegate::GetLinkText() const {
return l10n_util::GetStringUTF16(IDS_LEARN_MORE);
}
-bool ObsoleteSystemInfoBarDelegate::LinkClicked(
- WindowOpenDisposition disposition) {
- InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
- content::OpenURLParams(
+GURL ObsoleteSystemInfoBarDelegate::GetLinkURL() const {
#if defined(OS_MACOSX)
- GURL(chrome::kMac32BitDeprecationURL),
+ return GURL(chrome::kMac32BitDeprecationURL);
#else
- GURL("https://support.google.com/chrome/answer/95411"),
+ return GURL("https://support.google.com/chrome/answer/95411");
#endif
- content::Referrer(),
- (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
- ui::PAGE_TRANSITION_LINK, false));
- return false;
}

Powered by Google App Engine
This is Rietveld 408576698