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

Unified Diff: components/native_viewport/native_viewport_application_delegate.cc

Issue 1131933009: Making Mandoline apps notice when all the objects they vended are gone so that it can terminate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update 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
Index: components/native_viewport/native_viewport_application_delegate.cc
diff --git a/components/native_viewport/native_viewport_application_delegate.cc b/components/native_viewport/native_viewport_application_delegate.cc
index f77a944efef1a27f5ab982c06ed2a89da28cdd65..8927d2ada79653c970de2411e6d19d7afee0e073 100644
--- a/components/native_viewport/native_viewport_application_delegate.cc
+++ b/components/native_viewport/native_viewport_application_delegate.cc
@@ -49,7 +49,8 @@ void NativeViewportApplicationDelegate::Create(
mojo::InterfaceRequest<mojo::NativeViewport> request) {
if (!gpu_state_.get())
gpu_state_ = new gles2::GpuState;
- new NativeViewportImpl(is_headless_, gpu_state_, request.Pass());
+ new NativeViewportImpl(is_headless_, gpu_state_, request.Pass(),
+ app_lifetime_helper_.CreateAppRefCount());
}
void NativeViewportApplicationDelegate::Create(
« no previous file with comments | « components/native_viewport/native_viewport_application_delegate.h ('k') | components/native_viewport/native_viewport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698