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

Issue 1614553002: Reduce boilerplate needed to configure mojo::Binding (Closed)

Created:
4 years, 11 months ago by sky
Modified:
4 years, 11 months ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reduce boilerplate needed to configure mojo::Binding BUG=579645 TEST=none R=yzshen@chromium.org Committed: https://crrev.com/ad19bf46a6bea7ad579a19e044de847a9fd08e7d Cr-Commit-Position: refs/heads/master@{#370741}

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 4

Patch Set 3 : nuke std::move #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -11 lines) Patch
M mash/browser_driver/browser_driver_application_delegate.cc View 1 chunk +1 line, -3 lines 0 comments Download
M mash/shelf/shelf_view.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M mash/wm/accelerator_registrar_apptest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M mojo/public/cpp/bindings/binding.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
sky
I only converted the mash ones so that you can see it in use. I'll ...
4 years, 11 months ago (2016-01-21 01:07:21 UTC) #1
yzshen1
https://codereview.chromium.org/1614553002/diff/20001/mojo/public/cpp/bindings/binding.h File mojo/public/cpp/bindings/binding.h (right): https://codereview.chromium.org/1614553002/diff/20001/mojo/public/cpp/bindings/binding.h#newcode116 mojo/public/cpp/bindings/binding.h:116: InterfacePtr<Interface> CreateInterfacePtrAndBind() { Please add a |waiter| param (just ...
4 years, 11 months ago (2016-01-21 01:12:09 UTC) #2
sky
https://codereview.chromium.org/1614553002/diff/20001/mojo/public/cpp/bindings/binding.h File mojo/public/cpp/bindings/binding.h (right): https://codereview.chromium.org/1614553002/diff/20001/mojo/public/cpp/bindings/binding.h#newcode116 mojo/public/cpp/bindings/binding.h:116: InterfacePtr<Interface> CreateInterfacePtrAndBind() { On 2016/01/21 01:12:09, yzshen1 wrote: > ...
4 years, 11 months ago (2016-01-21 14:35:26 UTC) #3
yzshen1
lgtm, please address the other nit. On 2016/01/21 14:35:26, sky wrote: > https://codereview.chromium.org/1614553002/diff/20001/mojo/public/cpp/bindings/binding.h > File ...
4 years, 11 months ago (2016-01-21 15:23:35 UTC) #4
sky
https://codereview.chromium.org/1614553002/diff/20001/mojo/public/cpp/bindings/binding.h File mojo/public/cpp/bindings/binding.h (right): https://codereview.chromium.org/1614553002/diff/20001/mojo/public/cpp/bindings/binding.h#newcode119 mojo/public/cpp/bindings/binding.h:119: return std::move(interface_ptr); On 2016/01/21 01:12:09, yzshen1 wrote: > I ...
4 years, 11 months ago (2016-01-21 17:50:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1614553002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1614553002/40001
4 years, 11 months ago (2016-01-21 17:50:58 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-21 18:59:54 UTC) #9
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ad19bf46a6bea7ad579a19e044de847a9fd08e7d Cr-Commit-Position: refs/heads/master@{#370741}
4 years, 11 months ago (2016-01-21 19:01:53 UTC) #11
Elliot Glaysher
Hi, I believe this broke ToT mash: [0121/111257:FATAL:binding.h(218)] Check failed: is_bound(). #0 0x7f229a0b290e base::debug::StackTrace::StackTrace() #1 ...
4 years, 11 months ago (2016-01-21 19:15:01 UTC) #13
Elliot Glaysher
On 2016/01/21 19:15:01, Elliot Glaysher wrote: > Hi, I believe this broke ToT mash: > ...
4 years, 11 months ago (2016-01-21 19:23:54 UTC) #14
sky
4 years, 11 months ago (2016-01-21 20:20:38 UTC) #15
Message was sent while issue was closed.
Sorry for the breakage and thanks for the fix.

On Thu, Jan 21, 2016 at 11:23 AM,  <erg@chromium.org> wrote:
> On 2016/01/21 19:15:01, Elliot Glaysher wrote:
>>
>> Hi, I believe this broke ToT mash:
>
>
>> [0121/111257:FATAL:binding.h(218)] Check failed: is_bound().
>> #0 0x7f229a0b290e base::debug::StackTrace::StackTrace()
>> #1 0x7f229a100cff logging::LogMessage::~LogMessage()
>> #2 0x7f2297eac6f2 mojo::Binding<>::set_connection_error_handler()
>> #3 0x7f2297eabc26
>> mash::browser_driver::BrowserDriverApplicationDelegate::AddAccelerators()
>> #4 0x7f2297eabab4
>> mash::browser_driver::BrowserDriverApplicationDelegate::Initialize()
>
>
>> It looks like a binding needs to be bound to set a connection error
>> handler.
>> browser_driver consistently crashes on mash startup now.
>
>
> Created https://codereview.chromium.org/1617893003/
>
> https://codereview.chromium.org/1614553002/

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698