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

Unified Diff: chrome/browser/password_manager/password_manager_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/password_manager/password_manager_infobar_delegate.cc
diff --git a/chrome/browser/password_manager/password_manager_infobar_delegate.cc b/chrome/browser/password_manager/password_manager_infobar_delegate.cc
index be734063acdb4119ee4c2b361119cfd497c47e4e..c19dabb8129b14f032057aeb9143feb328301aea 100644
--- a/chrome/browser/password_manager/password_manager_infobar_delegate.cc
+++ b/chrome/browser/password_manager/password_manager_infobar_delegate.cc
@@ -40,14 +40,13 @@ base::string16 PasswordManagerInfoBarDelegate::GetMessageText() const {
return message_;
}
+GURL PasswordManagerInfoBarDelegate::GetLinkURL() const {
+ return GURL(l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_SMART_LOCK_PAGE));
+}
+
bool PasswordManagerInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
- InfoBarService::WebContentsFromInfoBar(infobar())
- ->OpenURL(content::OpenURLParams(
- GURL(l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_SMART_LOCK_PAGE)),
- content::Referrer(),
- (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
- ui::PAGE_TRANSITION_LINK, false));
+ ConfirmInfoBarDelegate::LinkClicked(disposition);
return true;
}
« no previous file with comments | « chrome/browser/password_manager/password_manager_infobar_delegate.h ('k') | chrome/browser/pepper_broker_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698