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

Unified Diff: mojo/services/native_viewport/native_viewport_service.cc

Issue 405653003: mojo: Make InterfacePtr<> testable in if() statements without .get(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to is_bound() Created 6 years, 5 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: mojo/services/native_viewport/native_viewport_service.cc
diff --git a/mojo/services/native_viewport/native_viewport_service.cc b/mojo/services/native_viewport/native_viewport_service.cc
index b7c80524c78349e953c76582ee914b72f9eea57f..203ec104edc99ae969c7585c2e539a7a12339012 100644
--- a/mojo/services/native_viewport/native_viewport_service.cc
+++ b/mojo/services/native_viewport/native_viewport_service.cc
@@ -73,7 +73,7 @@ class NativeViewportImpl
virtual void CreateGLES2Context(
InterfaceRequest<CommandBuffer> command_buffer_request) OVERRIDE {
- if (command_buffer_.get() || command_buffer_request_.is_pending()) {
+ if (command_buffer_ || command_buffer_request_.is_pending()) {
LOG(ERROR) << "Can't create multiple contexts on a NativeViewport";
return;
}
« no previous file with comments | « mojo/services/html_viewer/html_viewer.cc ('k') | mojo/services/view_manager/view_manager_init_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698