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

Issue 1551843002: [Chromecast] Add BindToTaskRunner and BindToCurrentThread (Closed)

Created:
4 years, 11 months ago by kmackay
Modified:
4 years, 11 months ago
Reviewers:
halliwell, maclellant
CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org, halliwell+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Add BindToTaskRunner and BindToCurrentThread We have a few locations where we want to bind a callback to run on a specific task runner. We also use media::BindToCurrentLoop in many places, even where there isn't necessarily a media dependency. Now BindToCurrentThread can be used instead. BUG= internal b/26273598 TEST= cast_base_unittests Committed: https://crrev.com/5ff9107e04c398377052272a84c20da313a853fb Cr-Commit-Position: refs/heads/master@{#367156}

Patch Set 1 #

Patch Set 2 : Fix comments #

Total comments: 2

Patch Set 3 : Correct copyright notice #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -36 lines) Patch
M chromecast/base/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
A chromecast/base/bind_to_task_runner.h View 1 1 chunk +86 lines, -0 lines 0 comments Download
A + chromecast/base/bind_to_task_runner_unittest.cc View 1 2 5 chunks +36 lines, -36 lines 0 comments Download
M chromecast/chromecast.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/chromecast_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
kmackay
4 years, 11 months ago (2015-12-29 23:09:56 UTC) #2
maclellant
lgtm % nit https://codereview.chromium.org/1551843002/diff/20001/chromecast/base/bind_to_task_runner_unittest.cc File chromecast/base/bind_to_task_runner_unittest.cc (right): https://codereview.chromium.org/1551843002/diff/20001/chromecast/base/bind_to_task_runner_unittest.cc#newcode1 chromecast/base/bind_to_task_runner_unittest.cc:1: // Copyright (c) 2012 The Chromium ...
4 years, 11 months ago (2015-12-29 23:21:00 UTC) #3
kmackay
https://codereview.chromium.org/1551843002/diff/20001/chromecast/base/bind_to_task_runner_unittest.cc File chromecast/base/bind_to_task_runner_unittest.cc (right): https://codereview.chromium.org/1551843002/diff/20001/chromecast/base/bind_to_task_runner_unittest.cc#newcode1 chromecast/base/bind_to_task_runner_unittest.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
4 years, 11 months ago (2015-12-29 23:23:38 UTC) #4
halliwell
On 2015/12/29 23:23:38, kmackay wrote: > https://codereview.chromium.org/1551843002/diff/20001/chromecast/base/bind_to_task_runner_unittest.cc > File chromecast/base/bind_to_task_runner_unittest.cc (right): > > https://codereview.chromium.org/1551843002/diff/20001/chromecast/base/bind_to_task_runner_unittest.cc#newcode1 > ...
4 years, 11 months ago (2015-12-30 15:03:28 UTC) #5
kmackay
> Please put [Chromecast] on front of commit description. > > It seems a little ...
4 years, 11 months ago (2015-12-30 16:04:16 UTC) #7
halliwell
On 2015/12/30 16:04:16, kmackay wrote: > > Please put [Chromecast] on front of commit description. ...
4 years, 11 months ago (2015-12-30 16:13:00 UTC) #8
kmackay
> Right ... I'm not questioning why generality is useful, but why something so > ...
4 years, 11 months ago (2015-12-30 16:19:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1551843002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1551843002/40001
4 years, 11 months ago (2015-12-30 16:19:32 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2015-12-30 16:48:29 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/5ff9107e04c398377052272a84c20da313a853fb Cr-Commit-Position: refs/heads/master@{#367156}
4 years, 11 months ago (2015-12-30 16:49:14 UTC) #16
halliwell
4 years, 11 months ago (2015-12-30 16:52:27 UTC) #17
Message was sent while issue was closed.
On 2015/12/30 16:19:02, kmackay wrote:
> > Right ... I'm not questioning why generality is useful, but why something so
> > general should be defined in chromecast/.  It doesn't seem like a
> > chromecast-specific concept at all.
> > 
> > So I was wondering if there's an existing construct in Chromium that we
should
> > be using.  But I can't find one.
> > 
> > lgtm.
> 
> Ah. I tried to upstream it to base/, but they were not enthusiastic.
> https://codereview.chromium.org/1553593002/

Ha, ok ... thanks for trying! :)

Powered by Google App Engine
This is Rietveld 408576698