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 b4b4d7db944f5f21fe759cdeb8f350148e2e2164..c25e6ec67b08192e4ffe4a074862bdce6e5d296c 100644 |
--- a/chrome/browser/search/local_ntp_source.cc |
+++ b/chrome/browser/search/local_ntp_source.cc |
@@ -184,9 +184,12 @@ void LocalNtpSource::StartDataRequest( |
std::string LocalNtpSource::GetMimeType( |
const std::string& path) const { |
- const std::string stripped_path = StripParameters(path); |
+ const std::string& stripped_path = StripParameters(path); |
+ std::string filename; |
+ webui::ParsePathAndScale(GURL(GetLocalNtpPath() + stripped_path), &filename, |
+ NULL); |
for (size_t i = 0; i < arraysize(kResources); ++i) { |
- if (stripped_path == kResources[i].filename) |
+ if (filename == kResources[i].filename) |
return kResources[i].mime_type; |
} |
return std::string(); |