Index: chrome/browser/icon_loader_win.cc |
diff --git a/chrome/browser/icon_loader_win.cc b/chrome/browser/icon_loader_win.cc |
index f12050a1c4da2c18cc25b8f424aef6870af8e262..f71cf1ffa0b688b1de47b3318576aee28400043e 100644 |
--- a/chrome/browser/icon_loader_win.cc |
+++ b/chrome/browser/icon_loader_win.cc |
@@ -11,10 +11,10 @@ |
#include "base/message_loop/message_loop.h" |
#include "base/threading/thread.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
+#include "ui/display/win/dpi.h" |
#include "ui/gfx/geometry/size.h" |
#include "ui/gfx/icon_util.h" |
#include "ui/gfx/image/image_skia.h" |
-#include "ui/gfx/win/dpi.h" |
// static |
IconGroupID IconLoader::ReadGroupIDFromFilepath( |
@@ -61,7 +61,8 @@ void IconLoader::ReadIcon() { |
scoped_ptr<SkBitmap> bitmap(IconUtil::CreateSkBitmapFromHICON( |
file_info.hIcon)); |
if (bitmap.get()) { |
- gfx::ImageSkia image_skia(gfx::ImageSkiaRep(*bitmap, gfx::GetDPIScale())); |
+ gfx::ImageSkia image_skia(gfx::ImageSkiaRep(*bitmap, |
+ display::win::GetDPIScale())); |
image_skia.MakeThreadSafe(); |
image_.reset(new gfx::Image(image_skia)); |
DestroyIcon(file_info.hIcon); |