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

Unified Diff: mojo/shell/runner/host/out_of_process_native_runner.cc

Issue 1755843002: Clean up MojoShellConnection in render processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: Created 4 years, 10 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/shell/runner/host/child_process_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/runner/host/out_of_process_native_runner.cc
diff --git a/mojo/shell/runner/host/out_of_process_native_runner.cc b/mojo/shell/runner/host/out_of_process_native_runner.cc
index cea56bc53c9625fae64312e0e417be7182283870..cb3da62f3ae275eee2a86d3c40aac328a86da90a 100644
--- a/mojo/shell/runner/host/out_of_process_native_runner.cc
+++ b/mojo/shell/runner/host/out_of_process_native_runner.cc
@@ -67,7 +67,8 @@ void OutOfProcessNativeRunner::AppCompleted(int32_t result) {
// This object may be deleted by this callback.
base::Closure app_completed_callback = app_completed_callback_;
app_completed_callback_.Reset();
- app_completed_callback.Run();
+ if (!app_completed_callback.is_null())
+ app_completed_callback.Run();
}
void OutOfProcessNativeRunner::OnProcessLaunched(
« no previous file with comments | « mojo/shell/runner/host/child_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698