| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" | 5 #include "chrome/browser/autofill/autofill_cc_infobar_delegate.h" | 
| 6 | 6 | 
| 7 #include "base/logging.h" | 7 #include "base/logging.h" | 
| 8 #include "chrome/browser/autofill/credit_card.h" | 8 #include "chrome/browser/autofill/credit_card.h" | 
| 9 #include "chrome/browser/autofill/personal_data_manager.h" | 9 #include "chrome/browser/autofill/personal_data_manager.h" | 
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" | 
| 11 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" | 
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" | 
| 13 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources_standard.h" | 
| 14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" | 
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" | 
| 16 | 16 | 
| 17 AutofillCCInfoBarDelegate::AutofillCCInfoBarDelegate( | 17 AutofillCCInfoBarDelegate::AutofillCCInfoBarDelegate( | 
| 18     TabContents* tab_contents, | 18     TabContents* tab_contents, | 
| 19     const CreditCard* credit_card, | 19     const CreditCard* credit_card, | 
| 20     PersonalDataManager* personal_data, | 20     PersonalDataManager* personal_data, | 
| 21     const AutofillMetrics* metric_logger) | 21     const AutofillMetrics* metric_logger) | 
| 22     : ConfirmInfoBarDelegate(tab_contents), | 22     : ConfirmInfoBarDelegate(tab_contents), | 
| 23       credit_card_(credit_card), | 23       credit_card_(credit_card), | 
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 89 string16 AutofillCCInfoBarDelegate::GetLinkText() { | 89 string16 AutofillCCInfoBarDelegate::GetLinkText() { | 
| 90   return l10n_util::GetStringUTF16(IDS_LEARN_MORE); | 90   return l10n_util::GetStringUTF16(IDS_LEARN_MORE); | 
| 91 } | 91 } | 
| 92 | 92 | 
| 93 bool AutofillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { | 93 bool AutofillCCInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { | 
| 94   Browser* browser = BrowserList::GetLastActive(); | 94   Browser* browser = BrowserList::GetLastActive(); | 
| 95   DCHECK(browser); | 95   DCHECK(browser); | 
| 96   browser->OpenAutofillHelpTabAndActivate(); | 96   browser->OpenAutofillHelpTabAndActivate(); | 
| 97   return false; | 97   return false; | 
| 98 } | 98 } | 
| OLD | NEW | 
|---|