diff options
Diffstat (limited to 'chrome/browser/dom_ui/fileicon_source.cc')
-rw-r--r-- | chrome/browser/dom_ui/fileicon_source.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/dom_ui/fileicon_source.cc b/chrome/browser/dom_ui/fileicon_source.cc index e35d49c..daf9a43 100644 --- a/chrome/browser/dom_ui/fileicon_source.cc +++ b/chrome/browser/dom_ui/fileicon_source.cc @@ -25,13 +25,12 @@ void FileIconSource::StartDataRequest(const std::string& path, int request_id) { IconManager* im = g_browser_process->icon_manager(); - // The path we receive has the wrong slashes and escaping for what we need; - // this only appears to matter for getting icons from .exe files. std::string escaped_path = UnescapeURLComponent(path, UnescapeRule::SPACES); - std::replace(escaped_path.begin(), escaped_path.end(), '/', '\\'); - // Fast look up. #if defined(OS_WIN) + // The path we receive has the wrong slashes and escaping for what we need; + // this only appears to matter for getting icons from .exe files. + std::replace(escaped_path.begin(), escaped_path.end(), '/', '\\'); FilePath escaped_filepath(UTF8ToWide(escaped_path)); #elif defined(OS_POSIX) // The correct encoding on Linux may not actually be UTF8. |