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

Unified Diff: chrome/renderer/resource_bundle_source_map.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/renderer/resource_bundle_source_map.cc
diff --git a/chrome/renderer/resource_bundle_source_map.cc b/chrome/renderer/resource_bundle_source_map.cc
index 5a4258204790d8485bd0183389115c36f4ed6f30..86ee68db6721e8d355d24f66ff593c97c626c2b1 100644
--- a/chrome/renderer/resource_bundle_source_map.cc
+++ b/chrome/renderer/resource_bundle_source_map.cc
@@ -4,6 +4,7 @@
#include "chrome/renderer/resource_bundle_source_map.h"
+#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
ResourceBundleSourceMap::ResourceBundleSourceMap(
@@ -24,7 +25,8 @@ v8::Handle<v8::Value> ResourceBundleSourceMap::GetSource(
if (!Contains(name))
return v8::Undefined();
int resource_id = resource_id_map_[name];
- return ConvertString(resource_bundle_->GetRawDataResource(resource_id));
+ return ConvertString(resource_bundle_->GetRawDataResource(
+ resource_id, ui::SCALE_FACTOR_NONE));
}
bool ResourceBundleSourceMap::Contains(const std::string& name) {

Powered by Google App Engine
This is Rietveld 408576698