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

Unified Diff: mojo/runner/native_application_support.cc

Issue 1107233002: Move runner stuff into a runner namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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/native_application_support.h ('k') | mojo/runner/native_runner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/native_application_support.cc
diff --git a/mojo/runner/native_application_support.cc b/mojo/runner/native_application_support.cc
index aa6f68b03a4c0568ae8f8b93cab091d57c872778..c4270da27bd95f2c86d8e900a4b637be070d38e3 100644
--- a/mojo/runner/native_application_support.cc
+++ b/mojo/runner/native_application_support.cc
@@ -18,7 +18,7 @@
#include "mojo/public/platform/native/system_thunks.h"
namespace mojo {
-namespace shell {
+namespace runner {
namespace {
@@ -43,13 +43,14 @@ bool SetThunks(Thunks (*make_thunks)(),
} // namespace
-base::NativeLibrary LoadNativeApplication(const base::FilePath& app_path,
- NativeApplicationCleanup cleanup) {
+base::NativeLibrary LoadNativeApplication(
+ const base::FilePath& app_path,
+ shell::NativeApplicationCleanup cleanup) {
DVLOG(2) << "Loading Mojo app in process from library: " << app_path.value();
base::NativeLibraryLoadError error;
base::NativeLibrary app_library = base::LoadNativeLibrary(app_path, &error);
- if (cleanup == NativeApplicationCleanup::DELETE)
+ if (cleanup == shell::NativeApplicationCleanup::DELETE)
DeleteFile(app_path, false);
LOG_IF(ERROR, !app_library)
<< "Failed to load app library (error: " << error.ToString() << ")";
@@ -141,5 +142,5 @@ bool RunNativeApplication(base::NativeLibrary app_library,
return true;
}
-} // namespace shell
+} // namespace runner
} // namespace mojo
« no previous file with comments | « mojo/runner/native_application_support.h ('k') | mojo/runner/native_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698