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

Unified Diff: chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm

Issue 2382563003: Remove some more desktop infobar PNGs. (Closed)
Patch Set: pkasting review Created 4 years, 2 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
« no previous file with comments | « chrome/browser/plugins/plugin_observer.cc ('k') | chrome/browser/ui/collected_cookies_infobar_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm b/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
index adf8e17fe63225bae01d16570cab452ee81fe93d..bc593c1bfb61cda12898ea55b013bb008f06be50 100644
--- a/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/website_settings/permission_bubble_controller.mm
@@ -45,6 +45,9 @@
#include "ui/base/cocoa/window_size_constants.h"
#include "ui/base/l10n/l10n_util_mac.h"
#include "ui/base/models/simple_menu_model.h"
+#include "ui/gfx/color_palette.h"
+#include "ui/gfx/image/image_skia_util_mac.h"
+#include "ui/gfx/paint_vector_icon.h"
#include "url/gurl.h"
using base::UserMetricsAction;
@@ -506,8 +509,9 @@ const NSInteger kFullscreenLeftOffset = 40;
[[NSView alloc] initWithFrame:NSZeroRect]);
base::scoped_nsobject<NSImageView> permissionIcon(
[[NSImageView alloc] initWithFrame:NSZeroRect]);
- [permissionIcon setImage:ui::ResourceBundle::GetSharedInstance().
- GetNativeImageNamed(request->GetIconId()).ToNSImage()];
+ [permissionIcon setImage:NSImageFromImageSkia(
+ gfx::CreateVectorIcon(request->GetVectorIconId(), 18,
+ gfx::kChromeIconGrey))];
[permissionIcon setFrameSize:kPermissionIconSize];
[permissionView addSubview:permissionIcon];
« no previous file with comments | « chrome/browser/plugins/plugin_observer.cc ('k') | chrome/browser/ui/collected_cookies_infobar_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698