Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: chrome/browser/ui/views/autofill/save_card_icon_view.cc

Issue 2733823003: Move final vector icons out of ui/gfx/vector_icons/ and remove the (Closed)
Patch Set: fix deps Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/app/vector_icons/vector_icons.h" 8 #include "chrome/app/vector_icons/vector_icons.h"
9 #include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h" 9 #include "chrome/browser/ui/autofill/save_card_bubble_controller_impl.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/tabs/tab_strip_model.h" 11 #include "chrome/browser/ui/tabs/tab_strip_model.h"
12 #include "chrome/browser/ui/view_ids.h" 12 #include "chrome/browser/ui/view_ids.h"
13 #include "chrome/browser/ui/views/autofill/save_card_bubble_views.h" 13 #include "chrome/browser/ui/views/autofill/save_card_bubble_views.h"
14 #include "chrome/grit/generated_resources.h" 14 #include "chrome/grit/generated_resources.h"
15 #include "ui/base/l10n/l10n_util.h" 15 #include "ui/base/l10n/l10n_util.h"
16 #include "ui/gfx/vector_icons_public.h"
17 16
18 namespace autofill { 17 namespace autofill {
19 18
20 SaveCardIconView::SaveCardIconView(CommandUpdater* command_updater, 19 SaveCardIconView::SaveCardIconView(CommandUpdater* command_updater,
21 Browser* browser) 20 Browser* browser)
22 : BubbleIconView(command_updater, IDC_SAVE_CREDIT_CARD_FOR_PAGE), 21 : BubbleIconView(command_updater, IDC_SAVE_CREDIT_CARD_FOR_PAGE),
23 browser_(browser) { 22 browser_(browser) {
24 set_id(VIEW_ID_SAVE_CREDIT_CARD_BUTTON); 23 set_id(VIEW_ID_SAVE_CREDIT_CARD_BUTTON);
25 SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_SAVE_CREDIT_CARD)); 24 SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_SAVE_CREDIT_CARD));
26 if (browser) 25 if (browser)
(...skipping 28 matching lines...) Expand all
55 if (!browser_) 54 if (!browser_)
56 return nullptr; 55 return nullptr;
57 content::WebContents* web_contents = 56 content::WebContents* web_contents =
58 browser_->tab_strip_model()->GetActiveWebContents(); 57 browser_->tab_strip_model()->GetActiveWebContents();
59 if (!web_contents) 58 if (!web_contents)
60 return nullptr; 59 return nullptr;
61 return autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents); 60 return autofill::SaveCardBubbleControllerImpl::FromWebContents(web_contents);
62 } 61 }
63 62
64 } // namespace autofill 63 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/card_unmask_prompt_views.cc ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698