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

Unified Diff: chrome/browser/themes/browser_theme_pack.cc

Issue 10151025: Add scale factor tag to data packs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 8 years, 8 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/themes/browser_theme_pack.cc
diff --git a/chrome/browser/themes/browser_theme_pack.cc b/chrome/browser/themes/browser_theme_pack.cc
index 980a1a411179bf9b10ea58a6f147b591a2c1fdd8..b9acebe661eb620665e050e56ae363cff6ea615b 100644
--- a/chrome/browser/themes/browser_theme_pack.cc
+++ b/chrome/browser/themes/browser_theme_pack.cc
@@ -380,7 +380,8 @@ scoped_refptr<BrowserThemePack> BrowserThemePack::BuildFromDataPack(
// (see http://crbug.com/80206)
base::ThreadRestrictions::ScopedAllowIO allow_io;
scoped_refptr<BrowserThemePack> pack(new BrowserThemePack);
- pack->data_pack_.reset(new ui::DataPack);
+ pack->data_pack_.reset(
+ new ui::DataPack(ui::ResourceHandle::kScaleFactor1x));
if (!pack->data_pack_->Load(path)) {
LOG(ERROR) << "Failed to load theme data pack.";

Powered by Google App Engine
This is Rietveld 408576698