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

Issue 405653003: mojo: Make InterfacePtr<> testable in if() statements without .get(). (Closed)

Created:
6 years, 5 months ago by Elliot Glaysher
Modified:
6 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284269

Patch Set 1 #

Patch Set 2 : Rebase to ToT #

Total comments: 3

Patch Set 3 : Move to is_bound() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -25 lines) Patch
M mojo/examples/nesting_app/nesting_app.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/examples/window_manager/window_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/gles2/command_buffer_client_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/interface_ptr.h View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/interface_ptr_internal.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/handle_passing_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/tests/interface_ptr_unittest.cc View 1 2 chunks +7 lines, -7 lines 0 comments Download
M mojo/services/gles2/command_buffer_impl.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M mojo/services/html_viewer/html_viewer.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/native_viewport/native_viewport_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/view_manager_init_service_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/shell/dynamic_service_loader.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/spy/spy.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/system/local_data_pipe.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/views/native_widget_view_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
darin (slow to review)
LGTM!!
6 years, 5 months ago (2014-07-18 18:13:18 UTC) #1
yzshen1
https://codereview.chromium.org/405653003/diff/20001/mojo/public/cpp/bindings/interface_ptr.h File mojo/public/cpp/bindings/interface_ptr.h (right): https://codereview.chromium.org/405653003/diff/20001/mojo/public/cpp/bindings/interface_ptr.h#newcode107 mojo/public/cpp/bindings/interface_ptr.h:107: // Allow InterfacePtr<> to be used in boolean expressions, ...
6 years, 5 months ago (2014-07-18 19:17:44 UTC) #2
Elliot Glaysher
https://codereview.chromium.org/405653003/diff/20001/mojo/public/cpp/bindings/interface_ptr.h File mojo/public/cpp/bindings/interface_ptr.h (right): https://codereview.chromium.org/405653003/diff/20001/mojo/public/cpp/bindings/interface_ptr.h#newcode107 mojo/public/cpp/bindings/interface_ptr.h:107: // Allow InterfacePtr<> to be used in boolean expressions, ...
6 years, 5 months ago (2014-07-18 19:32:15 UTC) #3
yzshen1
https://codereview.chromium.org/405653003/diff/20001/mojo/public/cpp/bindings/interface_ptr.h File mojo/public/cpp/bindings/interface_ptr.h (right): https://codereview.chromium.org/405653003/diff/20001/mojo/public/cpp/bindings/interface_ptr.h#newcode107 mojo/public/cpp/bindings/interface_ptr.h:107: // Allow InterfacePtr<> to be used in boolean expressions, ...
6 years, 5 months ago (2014-07-18 19:38:45 UTC) #4
yzshen1
LGTM Thanks!
6 years, 5 months ago (2014-07-18 21:18:01 UTC) #5
Elliot Glaysher
The CQ bit was checked by erg@chromium.org
6 years, 5 months ago (2014-07-18 22:11:04 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/405653003/40001
6 years, 5 months ago (2014-07-18 22:12:20 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-19 00:58:01 UTC) #8
Message was sent while issue was closed.
Change committed as 284269

Powered by Google App Engine
This is Rietveld 408576698