| 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 50142195c9c18d6b4045fb9aa51462e3e6666306..6b64e4b7926166764fe9bd2d314cb7ecc54fd74e 100644
|
| --- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
|
| +++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
|
| @@ -43,10 +43,11 @@ base::string16 GoogleApiKeysInfoBarDelegate::GetLinkText() const {
|
|
|
| bool GoogleApiKeysInfoBarDelegate::LinkClicked(
|
| WindowOpenDisposition disposition) {
|
| - web_contents()->OpenURL(content::OpenURLParams(
|
| - GURL("http://www.chromium.org/developers/how-tos/api-keys"),
|
| - content::Referrer(),
|
| - (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
|
| - content::PAGE_TRANSITION_LINK, false));
|
| + InfoBarService::WebContentsFromInfoBar(infobar())->OpenURL(
|
| + content::OpenURLParams(
|
| + GURL("http://www.chromium.org/developers/how-tos/api-keys"),
|
| + content::Referrer(),
|
| + (disposition == CURRENT_TAB) ? NEW_FOREGROUND_TAB : disposition,
|
| + content::PAGE_TRANSITION_LINK, false));
|
| return false;
|
| }
|
|
|