summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/resource_bundle_source_map.cc
diff options
context:
space:
mode:
authorflackr@chromium.org <flackr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-24 11:04:57 +0000
committerflackr@chromium.org <flackr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-24 11:04:57 +0000
commitc49201a506dba0e3a04aad623e4b259f948f3159 (patch)
tree2a93fff52861f5c8dd87e23bc23d170b7cb1309e /chrome/renderer/resource_bundle_source_map.cc
parent16bb3c2f909662329b117e063280f6cfc2cca3f9 (diff)
downloadchromium_src-c49201a506dba0e3a04aad623e4b259f948f3159.zip
chromium_src-c49201a506dba0e3a04aad623e4b259f948f3159.tar.gz
chromium_src-c49201a506dba0e3a04aad623e4b259f948f3159.tar.bz2
Revert "Revert 137734 - Select theme resources from ResourceBundle at requested scale factor."
Relanding original CL 137734, http://codereview.chromium.org/10387010/. TBR=aa,abodenha,ben,sail,tony BUG=123611 TEST=All try bots pass and aura runs without errors. Review URL: https://chromiumcodereview.appspot.com/10412004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138769 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/resource_bundle_source_map.cc')
-rw-r--r--chrome/renderer/resource_bundle_source_map.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/renderer/resource_bundle_source_map.cc b/chrome/renderer/resource_bundle_source_map.cc
index 5a42582..86ee68d 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) {