Index: chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc |
diff --git a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc |
index 58bc710c3803994ed2d9e73ce6c34cbda20ddc20..0a234b91ab2020d089bfd33717bc745770e96818 100644 |
--- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc |
+++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc |
@@ -41,11 +41,15 @@ base::string16 GoogleApiKeysInfoBarDelegate::GetLinkText() const { |
return l10n_util::GetStringUTF16(IDS_LEARN_MORE); |
} |
+GURL GoogleApiKeysInfoBarDelegate::GetLinkURL() const { |
+ return GURL("http://www.chromium.org/developers/how-tos/api-keys"); |
+} |
+ |
bool GoogleApiKeysInfoBarDelegate::LinkClicked( |
WindowOpenDisposition disposition) { |
InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL( |
content::OpenURLParams( |
- GURL("http://www.chromium.org/developers/how-tos/api-keys"), |
+ GetLinkURL(), |
content::Referrer(), |
(disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition, |
ui::PAGE_TRANSITION_LINK, false)); |