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

Unified Diff: chrome/browser/media/media_stream_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/media/media_stream_infobar_delegate.cc
diff --git a/chrome/browser/media/media_stream_infobar_delegate.cc b/chrome/browser/media/media_stream_infobar_delegate.cc
index 5f0e875c2b2a72ebbe0daf6f4ab3d9919eb2f431..62b26796b811195252343eed839cc2e6c4096fa8 100644
--- a/chrome/browser/media/media_stream_infobar_delegate.cc
+++ b/chrome/browser/media/media_stream_infobar_delegate.cc
@@ -146,14 +146,6 @@ base::string16 MediaStreamInfoBarDelegate::GetLinkText() const {
return base::string16();
}
-bool MediaStreamInfoBarDelegate::LinkClicked(
- WindowOpenDisposition disposition) {
- InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
- content::OpenURLParams(
- GURL(chrome::kMediaAccessLearnMoreUrl),
- content::Referrer(),
- (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
- ui::PAGE_TRANSITION_LINK, false));
-
- return false; // Do not dismiss the info bar.
+GURL MediaStreamInfoBarDelegate::GetLinkURL() const {
+ return GURL(chrome::kMediaAccessLearnMoreUrl);
}

Powered by Google App Engine
This is Rietveld 408576698