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

Unified Diff: chromecast/browser/service/cast_service_simple.cc

Issue 1068793002: Fixed "blocking io" from FixupPath on UI thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed adding cwd aka "blocking IO" used in FixupURL via FilePathToFileURL, also fixed client code Created 5 years, 8 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: chromecast/browser/service/cast_service_simple.cc
diff --git a/chromecast/browser/service/cast_service_simple.cc b/chromecast/browser/service/cast_service_simple.cc
index 9c7ca6d3fc6b8182ced4d8826b70b78cb0e804d1..d5c13892d2ce105e1a7d075e634f19544f045f2d 100644
--- a/chromecast/browser/service/cast_service_simple.cc
+++ b/chromecast/browser/service/cast_service_simple.cc
@@ -5,6 +5,7 @@
#include "chromecast/browser/service/cast_service_simple.h"
#include "base/command_line.h"
+#include "base/files/file_util.h"
#include "chromecast/browser/cast_content_window.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
@@ -26,7 +27,8 @@ GURL GetStartupURL() {
if (url.is_valid() && url.has_scheme())
return url;
- return net::FilePathToFileURL(base::FilePath(args[0]));
+ return net::FilePathToFileURL(
Peter Kasting 2015/04/22 22:40:04 Both this and shell_browser_main_parts.cc should b
+ base::MakeAbsoluteFilePath(base::FilePath(args[0])));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698