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

Unified Diff: shell/launcher_main.cc

Issue 865253002: Delete temporary application file as soon as the application is launched. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 11 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: shell/launcher_main.cc
diff --git a/shell/launcher_main.cc b/shell/launcher_main.cc
index 382a3026b92c13554dd7ae7d7e9b802cf778345f..d9e0fc7459dbebd69e633917522715efff952641 100644
--- a/shell/launcher_main.cc
+++ b/shell/launcher_main.cc
@@ -10,6 +10,7 @@
#include "base/run_loop.h"
#include "mojo/edk/embedder/embedder.h"
#include "mojo/edk/embedder/simple_platform_support.h"
+#include "shell/dynamic_service_runner.h"
#include "shell/external_application_registrar_connection.h"
#include "shell/in_process_dynamic_service_runner.h"
#include "shell/init.h"
@@ -49,7 +50,8 @@ class Launcher {
mojo::shell::InProcessDynamicServiceRunner service_runner(nullptr);
run_loop_.reset(new base::RunLoop);
service_runner.Start(
- app_path_, shell_handle_.Pass(),
+ app_path_, mojo::shell::DynamicServiceRunner::DontDeleteAppPath,
+ shell_handle_.Pass(),
base::Bind(&Launcher::OnAppCompleted, base::Unretained(this)));
run_loop_->Run();
run_loop_.reset();

Powered by Google App Engine
This is Rietveld 408576698