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

Unified Diff: shell/android/android_handler.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
« no previous file with comments | « no previous file | shell/app_child_process.cc » ('j') | shell/app_child_process.mojom » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/android_handler.cc
diff --git a/shell/android/android_handler.cc b/shell/android/android_handler.cc
index 5b29ad75b8839f4ff64a81fb014ec74ea6774d2d..03c1284ffbf7497a5e7436f0d23b517975c10e06 100644
--- a/shell/android/android_handler.cc
+++ b/shell/android/android_handler.cc
@@ -33,7 +33,7 @@ void RunAndroidApplication(JNIEnv* env,
jobject j_context,
const base::FilePath& app_path,
jint j_handle) {
- ScopedMessagePipeHandle handle((mojo::MessagePipeHandle(j_handle)));
+ ScopedMessagePipeHandle handle((MessagePipeHandle(j_handle)));
// Load the library, so that we can set the application context there if
// needed.
@@ -63,7 +63,8 @@ void RunAndroidApplication(JNIEnv* env,
// Run the application.
base::ScopedNativeLibrary app_library_from_runner(
- shell::DynamicServiceRunner::LoadAndRunService(app_path, handle.Pass()));
+ shell::DynamicServiceRunner::LoadAndRunService(
+ app_path, shell::DynamicServiceRunner::DeleteAppPath, handle.Pass()));
}
} // namespace
@@ -80,7 +81,7 @@ void AndroidHandler::RunApplication(ShellPtr shell, URLResponsePtr response) {
base::FilePath archive_path(
ConvertJavaStringToUTF8(env, j_archive_path.obj()));
- mojo::common::BlockingCopyToFile(response->body.Pass(), archive_path);
+ common::BlockingCopyToFile(response->body.Pass(), archive_path);
RunAndroidApplicationFn run_android_application_fn = &RunAndroidApplication;
Java_AndroidHandler_bootstrap(
env, GetApplicationContext(), j_archive_path.obj(),
« no previous file with comments | « no previous file | shell/app_child_process.cc » ('j') | shell/app_child_process.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698