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

Unified Diff: chrome/browser/ui/chrome_style.cc

Issue 11818044: Replace IDR_WEB_UI_CLOSE* with IDR_CLOSE_DIALOG*, cleanup, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 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
« no previous file with comments | « chrome/browser/resources/shared/css/overlay.css ('k') | chrome/browser/ui/cocoa/hover_close_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/chrome_style.cc
diff --git a/chrome/browser/ui/chrome_style.cc b/chrome/browser/ui/chrome_style.cc
index c4bdf72a7840bbda5dadc4baaea0d217e3c99a61..ef8ebbc1a8222e07fa1cad096bb7331ddd8ad838 100644
--- a/chrome/browser/ui/chrome_style.cc
+++ b/chrome/browser/ui/chrome_style.cc
@@ -5,18 +5,17 @@
#include "chrome/browser/ui/chrome_style.h"
#include "chrome/browser/themes/theme_service.h"
-#include "grit/theme_resources.h"
+#include "grit/ui_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/image/image.h"
namespace chrome_style {
int GetCloseButtonSize() {
- ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
- const SkBitmap* bitmap =
- bundle.GetNativeImageNamed(IDR_WEB_UI_CLOSE).ToSkBitmap();
- DCHECK_EQ(bitmap->width(), bitmap->height());
- return bitmap->width();
+ ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
+ const SkBitmap* image = rb.GetNativeImageNamed(IDR_CLOSE_DIALOG).ToSkBitmap();
+ DCHECK_EQ(image->width(), image->height());
+ return image->width();
}
SkColor GetBackgroundColor() {
« no previous file with comments | « chrome/browser/resources/shared/css/overlay.css ('k') | chrome/browser/ui/cocoa/hover_close_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698