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

Unified Diff: mojo/runner/android/native_viewport_application_loader.cc

Issue 1139673003: Make Mandoline shut down cleanly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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/application/app_lifetime_helper.cc ('k') | mojo/services/network/cookie_store_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/runner/android/native_viewport_application_loader.cc
diff --git a/mojo/runner/android/native_viewport_application_loader.cc b/mojo/runner/android/native_viewport_application_loader.cc
index 459f08a9434954ffcfe3e5821c3829079673198c..134f8098057be38e8c7f8d27994fd41e837476d2 100644
--- a/mojo/runner/android/native_viewport_application_loader.cc
+++ b/mojo/runner/android/native_viewport_application_loader.cc
@@ -36,7 +36,12 @@ void NativeViewportApplicationLoader::Create(
InterfaceRequest<NativeViewport> request) {
if (!gpu_state_)
gpu_state_ = new gles2::GpuState;
- new native_viewport::NativeViewportImpl(false, gpu_state_, request.Pass());
+ // Pass a null AppRefCount because on Android the NativeViewPort app must
+ // live on the main thread and we don't want to exit that when all the native
+ // viewports are gone.
+ new native_viewport::NativeViewportImpl(
+ false, gpu_state_, request.Pass(),
+ make_scoped_ptr<mojo::AppRefCount>(nullptr));
}
void NativeViewportApplicationLoader::Create(ApplicationConnection* connection,
« no previous file with comments | « mojo/application/app_lifetime_helper.cc ('k') | mojo/services/network/cookie_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698