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

Unified Diff: content/browser/compositor/delegated_frame_host.h

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: content/browser/compositor/delegated_frame_host.h
diff --git a/content/browser/compositor/delegated_frame_host.h b/content/browser/compositor/delegated_frame_host.h
index 21dc4e0c8f95341b2ca5e2cbbdbcb27b28ed4bf4..d1237afa01148081227773243c8e214e9fefa748 100644
--- a/content/browser/compositor/delegated_frame_host.h
+++ b/content/browser/compositor/delegated_frame_host.h
@@ -155,7 +155,7 @@ class CONTENT_EXPORT DelegatedFrameHost
void BeginFrameSubscription(
scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber);
void EndFrameSubscription();
- bool HasFrameSubscriber() const { return frame_subscriber_; }
+ bool HasFrameSubscriber() const { return !!frame_subscriber_; }
uint32_t GetSurfaceIdNamespace();
// Returns a null SurfaceId if this DelegatedFrameHost has not yet created
// a compositor Surface.

Powered by Google App Engine
This is Rietveld 408576698