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

Unified Diff: mojo/runner/url_resolver.cc

Issue 1147203002: Revert of Changes caching logic of mojo java apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: mojo/runner/url_resolver.cc
diff --git a/mojo/runner/url_resolver.cc b/mojo/runner/url_resolver.cc
index e3701264d24803b2463824fe954bf486dad7d2cc..e0ab27c260a2c75375686831b7eb1a3662016058 100644
--- a/mojo/runner/url_resolver.cc
+++ b/mojo/runner/url_resolver.cc
@@ -114,13 +114,9 @@
if (mojo_base_url_.SchemeIsFile()) {
const GURL url_with_directory(
mojo_base_url_.Resolve(base_url.host() + "/"));
- const base::FilePath dir(util::UrlToFilePath(url_with_directory));
- if (base::DirectoryExists(dir)) {
- const base::FilePath mojo_path = dir.Append(base_url.host() + ".mojo");
- // Only use the directory if the .mojo exists in the directory.
- if (base::PathExists(mojo_path))
- return url_with_directory.Resolve(base_url.host() + ".mojo" + query);
- }
+ const base::FilePath file_path(util::UrlToFilePath(url_with_directory));
+ if (base::DirectoryExists(file_path))
+ return url_with_directory.Resolve(base_url.host() + ".mojo" + query);
}
return mojo_base_url_.Resolve(base_url.host() + ".mojo" + query);
}
« no previous file with comments | « mojo/runner/android/tests/src/org/chromium/mojo/shell/ShellTestBase.java ('k') | mojo/runner/url_resolver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698