mojo: Make InterfacePtr<> testable in if() statements without .get().
commit3ecf8289a6e5d7e07b8e52cf1f3e40bf436e814c
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 19 Jul 2014 00:57:58 +0000 (19 00:57 +0000)
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 19 Jul 2014 00:57:58 +0000 (19 00:57 +0000)
tree72b3487aead1628b6375f783ff31646f67337ec6
parent1f6c86af09fd5fa00f4717040e57f276fecd46f2
mojo: Make InterfacePtr<> testable in if() statements without .get().

This also goes and changes a lot of "if (obj.get())" to "if (obj)".

BUG=394639

Review URL: https://codereview.chromium.org/405653003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284269 0039d316-1c4b-4281-b951-d872f2087c98
15 files changed:
mojo/examples/nesting_app/nesting_app.cc
mojo/examples/window_manager/window_manager.cc
mojo/gles2/command_buffer_client_impl.cc
mojo/public/cpp/bindings/interface_ptr.h
mojo/public/cpp/bindings/lib/interface_ptr_internal.h
mojo/public/cpp/bindings/tests/handle_passing_unittest.cc
mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc
mojo/services/gles2/command_buffer_impl.cc
mojo/services/html_viewer/html_viewer.cc
mojo/services/native_viewport/native_viewport_service.cc
mojo/services/view_manager/view_manager_init_service_impl.cc
mojo/shell/dynamic_service_loader.cc
mojo/spy/spy.cc
mojo/system/local_data_pipe.cc
mojo/views/native_widget_view_manager.cc