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

Unified Diff: chrome/browser/ui/extensions/extension_install_ui_default.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/extensions/extension_install_ui_default.cc
diff --git a/chrome/browser/ui/extensions/extension_install_ui_default.cc b/chrome/browser/ui/extensions/extension_install_ui_default.cc
index 32b306b2f88f973b62445217ee4f45212cbe6f64..b7ee1dea8464226de24dd5a555c45fb23ddfa094 100644
--- a/chrome/browser/ui/extensions/extension_install_ui_default.cc
+++ b/chrome/browser/ui/extensions/extension_install_ui_default.cc
@@ -86,7 +86,7 @@ class ErrorInfoBarDelegate : public ConfirmInfoBarDelegate {
base::string16 GetMessageText() const override;
int GetButtons() const override;
base::string16 GetLinkText() const override;
- bool LinkClicked(WindowOpenDisposition disposition) override;
+ GURL GetLinkURL() const override;
extensions::CrxInstallError error_;
@@ -122,14 +122,8 @@ base::string16 ErrorInfoBarDelegate::GetLinkText() const {
: base::string16();
}
-bool ErrorInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
- InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
- content::OpenURLParams(
- GURL("https://support.google.com/chrome_webstore/?p=crx_warning"),
- content::Referrer(),
- (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
- ui::PAGE_TRANSITION_LINK, false));
- return false;
+GURL ErrorInfoBarDelegate::GetLinkURL() const {
+ return GURL("https://support.google.com/chrome_webstore/?p=crx_warning");
}
} // namespace
« no previous file with comments | « chrome/browser/ui/confirm_bubble_model.cc ('k') | chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698