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

Unified Diff: shell/application_manager/local_fetcher.cc

Issue 1045893004: Remove is_win/OS_WIN checks in shell code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « shell/BUILD.gn ('k') | shell/child_process_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/application_manager/local_fetcher.cc
diff --git a/shell/application_manager/local_fetcher.cc b/shell/application_manager/local_fetcher.cc
index 9d23613e3b9fcddd61fefd98aa3233d824acbc1d..d9f2b6a460e84f7f73a8fb0782a3034303642dba 100644
--- a/shell/application_manager/local_fetcher.cc
+++ b/shell/application_manager/local_fetcher.cc
@@ -40,13 +40,7 @@ base::FilePath LocalFetcher::UrlToFile(const GURL& url) {
url::DecodeURLEscapeSequences(url.path().data(),
static_cast<int>(url.path().length()), &output);
base::string16 decoded_path = base::string16(output.data(), output.length());
-#if defined(OS_WIN)
- base::TrimString(decoded_path, L"/", &decoded_path);
- base::FilePath path(decoded_path);
-#else
- base::FilePath path(base::UTF16ToUTF8(decoded_path));
-#endif
- return path;
+ return base::FilePath(base::UTF16ToUTF8(decoded_path));
}
const GURL& LocalFetcher::GetURL() const {
« no previous file with comments | « shell/BUILD.gn ('k') | shell/child_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698