OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ui/views/autofill/save_card_icon_view.h" | 5 #include "chrome/browser/ui/views/autofill/save_card_icon_view.h" |
6 | 6 |
7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
8 #include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h" | 8 #include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 autofill::SaveCardBubbleControllerImpl* controller = | 44 autofill::SaveCardBubbleControllerImpl* controller = |
45 autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents); | 45 autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents); |
46 if (!controller) | 46 if (!controller) |
47 return nullptr; | 47 return nullptr; |
48 | 48 |
49 return static_cast<autofill::SaveCardBubbleViews*>( | 49 return static_cast<autofill::SaveCardBubbleViews*>( |
50 controller->save_card_bubble_view()); | 50 controller->save_card_bubble_view()); |
51 } | 51 } |
52 | 52 |
53 gfx::VectorIconId SaveCardIconView::GetVectorIcon() const { | 53 gfx::VectorIconId SaveCardIconView::GetVectorIcon() const { |
54 return gfx::VectorIconId::AUTOFILL; | 54 return gfx::VectorIconId::CREDIT_CARD; |
55 } | 55 } |
56 | 56 |
57 } // namespace autofill | 57 } // namespace autofill |
OLD | NEW |