Index: chrome/browser/search/local_ntp_source.cc |
diff --git a/chrome/browser/search/local_ntp_source.cc b/chrome/browser/search/local_ntp_source.cc |
index f6f649c7806ad53cd19a70b94a4df1fc557f169e..2387149803d9debfb1a36a45f88972bc765dde5e 100644 |
--- a/chrome/browser/search/local_ntp_source.cc |
+++ b/chrome/browser/search/local_ntp_source.cc |
@@ -149,10 +149,11 @@ void LocalNtpSource::StartDataRequest( |
callback.Run(base::RefCountedString::TakeString(&config_data_js)); |
return; |
} |
- ui::ScaleFactor scale_factor; |
+ float scale = 1.0f; |
std::string filename; |
webui::ParsePathAndScale( |
- GURL(GetLocalNtpPath() + stripped_path), &filename, &scale_factor); |
+ GURL(GetLocalNtpPath() + stripped_path), &filename, &scale); |
+ ui::ScaleFactor scale_factor = ui::GetSupportedScaleFactor(scale); |
for (size_t i = 0; i < arraysize(kResources); ++i) { |
if (filename == kResources[i].filename) { |
scoped_refptr<base::RefCountedStaticMemory> response( |