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

Unified Diff: mojo/runner/context.cc

Issue 1109993002: Adds support for mojo apps to live in their own directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk and move filename_util to own dir 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
« no previous file with comments | « mojo/runner/BUILD.gn ('k') | mojo/runner/filename_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/context.cc
diff --git a/mojo/runner/context.cc b/mojo/runner/context.cc
index db53876cc624ee3b6a823478d4fc8ef00741f859..4d8dcd9aa5feae95f555ad753f273861b7163e21 100644
--- a/mojo/runner/context.cc
+++ b/mojo/runner/context.cc
@@ -26,13 +26,13 @@
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_impl.h"
-#include "mojo/runner/filename_util.h"
#include "mojo/runner/in_process_native_runner.h"
#include "mojo/runner/out_of_process_native_runner.h"
#include "mojo/runner/switches.h"
#include "mojo/services/tracing/tracing.mojom.h"
#include "mojo/shell/application_loader.h"
#include "mojo/shell/application_manager.h"
+#include "mojo/util/filename_util.h"
#include "url/gurl.h"
namespace mojo {
@@ -217,7 +217,8 @@ void Context::EnsureEmbedderIsInitialized() {
}
void Context::SetShellFileRoot(const base::FilePath& path) {
- shell_file_root_ = AddTrailingSlashIfNeeded(FilePathToFileURL(path));
+ shell_file_root_ =
+ util::AddTrailingSlashIfNeeded(util::FilePathToFileURL(path));
}
GURL Context::ResolveShellFileURL(const std::string& path) {
@@ -225,7 +226,8 @@ GURL Context::ResolveShellFileURL(const std::string& path) {
}
void Context::SetCommandLineCWD(const base::FilePath& path) {
- command_line_cwd_ = AddTrailingSlashIfNeeded(FilePathToFileURL(path));
+ command_line_cwd_ =
+ util::AddTrailingSlashIfNeeded(util::FilePathToFileURL(path));
}
GURL Context::ResolveCommandLineURL(const std::string& path) {
« no previous file with comments | « mojo/runner/BUILD.gn ('k') | mojo/runner/filename_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698