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

Unified Diff: shell/out_of_process_dynamic_service_runner.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: clang format 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/out_of_process_dynamic_service_runner.cc
diff --git a/shell/out_of_process_dynamic_service_runner.cc b/shell/out_of_process_dynamic_service_runner.cc
index 45d57ef0db8e176da0aeec67828e1f8853f8e2a6..1c6610cde14a414a71d6569fa2d160a0a551e5fd 100644
--- a/shell/out_of_process_dynamic_service_runner.cc
+++ b/shell/out_of_process_dynamic_service_runner.cc
@@ -30,6 +30,7 @@ OutOfProcessDynamicServiceRunner::~OutOfProcessDynamicServiceRunner() {
void OutOfProcessDynamicServiceRunner::Start(
const base::FilePath& app_path,
+ bool clean_app_path,
ScopedMessagePipeHandle service_handle,
const base::Closure& app_completed_callback) {
app_path_ = app_path;
@@ -42,8 +43,9 @@ void OutOfProcessDynamicServiceRunner::Start(
// TODO(vtl): |app_path.AsUTF8Unsafe()| is unsafe.
app_child_process_host_->controller()->StartApp(
- app_path.AsUTF8Unsafe(), ScopedMessagePipeHandle(MessagePipeHandle(
- service_handle.release().value())));
+ app_path.AsUTF8Unsafe(), clean_app_path,
+ ScopedMessagePipeHandle(
+ MessagePipeHandle(service_handle.release().value())));
}
void OutOfProcessDynamicServiceRunner::AppCompleted(int32_t result) {
« shell/dynamic_service_runner.h ('K') | « shell/out_of_process_dynamic_service_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698