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

Unified Diff: components/native_viewport/native_viewport_impl.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_impl.cc
diff --git a/components/native_viewport/native_viewport_impl.cc b/components/native_viewport/native_viewport_impl.cc
index 3d2d068f79b65b47814e5f4a6ea8d7e919012828..10c2be59446141c28a8b23de7a3f393112d6153b 100644
--- a/components/native_viewport/native_viewport_impl.cc
+++ b/components/native_viewport/native_viewport_impl.cc
@@ -20,8 +20,10 @@ namespace native_viewport {
NativeViewportImpl::NativeViewportImpl(
bool is_headless,
const scoped_refptr<gles2::GpuState>& gpu_state,
- mojo::InterfaceRequest<mojo::NativeViewport> request)
+ mojo::InterfaceRequest<mojo::NativeViewport> request,
+ scoped_ptr<mojo::AppRefCount> app_refcount)
: is_headless_(is_headless),
+ app_refcount_(app_refcount.Pass()),
context_provider_(new OnscreenContextProvider(gpu_state)),
sent_metrics_(false),
metrics_(mojo::ViewportMetrics::New()),

Powered by Google App Engine
This is Rietveld 408576698