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

Unified Diff: chrome/browser/history/top_sites.cc

Issue 10387010: Select theme resources from ResourceBundle at requested scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master. Created 8 years, 7 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/history/top_sites.cc
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc
index 9dab6045727fb4046e8bba364a6bd99e87c9c499..779fe3b842f3adc76d1a948f48382faa82e10970 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -39,6 +39,7 @@
#include "grit/locale_settings.h"
#include "grit/theme_resources.h"
#include "ui/base/l10n/l10n_util.h"
+#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/image/image_util.h"
@@ -254,7 +255,8 @@ bool TopSites::GetPageThumbnail(const GURL& url,
for (size_t i = 0; i < arraysize(kPrepopulatedPages); i++) {
if (url.spec() == l10n_util::GetStringUTF8(kPrepopulatedPages[i].url_id)) {
*bytes = ResourceBundle::GetSharedInstance().LoadDataResourceBytes(
- kPrepopulatedPages[i].thumbnail_id);
+ kPrepopulatedPages[i].thumbnail_id,
+ ui::SCALE_FACTOR_100P);
return true;
}
}

Powered by Google App Engine
This is Rietveld 408576698