OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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.h" | 5 #include "chrome/browser/autofill/autofill_cc_infobar.h" |
6 | 6 |
7 #include "app/l10n_util.h" | |
8 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
9 #include "chrome/browser/views/event_utils.h" | 8 #include "chrome/browser/views/event_utils.h" |
10 #include "chrome/browser/views/infobars/infobar_button_border.h" | 9 #include "chrome/browser/views/infobars/infobar_button_border.h" |
11 #include "chrome/browser/views/infobars/infobars.h" | 10 #include "chrome/browser/views/infobars/infobars.h" |
12 #include "chrome/common/pref_names.h" | 11 #include "chrome/common/pref_names.h" |
13 #include "grit/chromium_strings.h" | 12 #include "grit/chromium_strings.h" |
14 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
15 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
16 #include "third_party/skia/include/core/SkBitmap.h" | 15 #include "third_party/skia/include/core/SkBitmap.h" |
17 #include "views/controls/button/text_button.h" | 16 #include "views/controls/button/text_button.h" |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 } | 183 } |
185 | 184 |
186 ConfirmInfoBarDelegate* SaveCCInfoConfirmInfoBar::GetDelegate() { | 185 ConfirmInfoBarDelegate* SaveCCInfoConfirmInfoBar::GetDelegate() { |
187 return delegate()->AsConfirmInfoBarDelegate(); | 186 return delegate()->AsConfirmInfoBarDelegate(); |
188 } | 187 } |
189 | 188 |
190 InfoBar* CreateAutofillCcInfoBar(ConfirmInfoBarDelegate* delegate) { | 189 InfoBar* CreateAutofillCcInfoBar(ConfirmInfoBarDelegate* delegate) { |
191 DCHECK(delegate); | 190 DCHECK(delegate); |
192 return new SaveCCInfoConfirmInfoBar(delegate); | 191 return new SaveCCInfoConfirmInfoBar(delegate); |
193 } | 192 } |
194 | |
OLD | NEW |