Index: chrome/browser/autofill/autofill_cc_infobar_delegate.cc |
diff --git a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc |
index 2dadc7de530746d6308dcf2112ecbdcd5ccb1956..bc47eca03071f912efc45b2806d779efba6b382d 100644 |
--- a/chrome/browser/autofill/autofill_cc_infobar_delegate.cc |
+++ b/chrome/browser/autofill/autofill_cc_infobar_delegate.cc |
@@ -9,6 +9,7 @@ |
#include "base/histogram.h" |
#include "chrome/browser/autofill/autofill_cc_infobar.h" |
#include "chrome/browser/autofill/autofill_manager.h" |
+#include "chrome/browser/browser_list.h" |
#include "chrome/browser/prefs/pref_service.h" |
#include "chrome/browser/profile.h" |
#include "chrome/browser/tab_contents/tab_contents.h" |
@@ -92,8 +93,9 @@ string16 AutoFillCCInfoBarDelegate::GetLinkText() { |
} |
bool AutoFillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { |
- host_->tab_contents()->OpenURL(GURL(kAutoFillLearnMoreUrl), GURL(), |
- NEW_FOREGROUND_TAB, PageTransition::TYPED); |
+ Browser* browser = BrowserList::GetLastActive(); |
+ DCHECK(browser); |
+ browser->OpenAutoFillHelpTabAndActivate(); |
return false; |
} |