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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
index f06cf3e7b018ee905975070617f48821ea24dd92..e95bea9dbb9910071305acea2af39d3c9a7c0df9 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm
@@ -13,6 +13,7 @@
#include "chrome/browser/ui/cocoa/autofill/autofill_popup_view_bridge.h"
#include "components/autofill/core/browser/popup_item_ids.h"
#include "components/autofill/core/browser/suggestion.h"
+#include "components/toolbar/vector_icons.h"
#include "skia/ext/skia_utils_mac.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/cocoa/window_size_constants.h"
@@ -24,7 +25,6 @@
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia_util_mac.h"
#include "ui/gfx/paint_vector_icon.h"
-#include "ui/gfx/vector_icons_public.h"
#include "ui/native_theme/native_theme.h"
#include "ui/native_theme/native_theme_mac.h"
@@ -291,15 +291,15 @@ using autofill::AutofillPopupLayoutModel;
// pages, reuse the omnibox vector icons.
if (icon == base::ASCIIToUTF16("httpWarning")) {
return NSImageFromImageSkiaWithColorSpace(
- gfx::CreateVectorIcon(gfx::VectorIconId::LOCATION_BAR_HTTP,
- kHttpWarningIconWidth, gfx::kChromeIconGrey),
+ gfx::CreateVectorIcon(toolbar::kHttpIcon, kHttpWarningIconWidth,
+ gfx::kChromeIconGrey),
base::mac::GetSRGBColorSpace());
}
if (icon == base::ASCIIToUTF16("httpsInvalid")) {
return NSImageFromImageSkiaWithColorSpace(
- gfx::CreateVectorIcon(gfx::VectorIconId::LOCATION_BAR_HTTPS_INVALID,
- kHttpWarningIconWidth, gfx::kGoogleRed700),
+ gfx::CreateVectorIcon(toolbar::kHttpsInvalidIcon, kHttpWarningIconWidth,
+ gfx::kGoogleRed700),
base::mac::GetSRGBColorSpace());
}
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_utils.cc ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698