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

Issue 7062013: Move media library AutoTaskRunner to base and rename ScopedTaskRunner. (Closed)

Created:
9 years, 7 months ago by Wez
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, sjl, simonmorris+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, brettw-cc_chromium.org, dmaclach+watch_chromium.org, garykac+watch_chromium.org, wez+watch_chromium.org, acolwell GONE FROM CHROMIUM, annacc, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), sergeyu+watch_chromium.org, lambroslambrou+watch_chromium.org
Visibility:
Public.

Description

Move media library AutoTaskRunner to base and rename ScopedTaskRunner. This is needed to avoid faux dependencies on media/ creeping in to remoting/ code, and creating linker issues. BUG= TEST=Everything works as before. Shared component builds certainly don't break. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86971 (Reverted - broke shared builds) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=87068

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address comments and add unit test. #

Total comments: 14

Patch Set 3 : Address comments. #

Total comments: 2

Patch Set 4 : Style nit. #

Patch Set 5 : Purge lingering uses of media::AutoTaskRunner... #

Patch Set 6 : Fix up use of AutoTaskRunner in code added since this CL began. #

Patch Set 7 : Add innocuous but critical BASE_API modifier to ScopedTaskRunner declaration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -100 lines) Patch
M base/task.h View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M base/task.cc View 1 2 3 2 chunks +21 lines, -1 line 0 comments Download
M base/task_unittest.cc View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
M content/renderer/media/video_capture_impl.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/media/video_capture_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M media/base/callback.h View 3 chunks +3 lines, -52 lines 0 comments Download
M media/base/callback.cc View 1 2 chunks +1 line, -7 lines 0 comments Download
M media/filters/decoder_base.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/decoder_base_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M remoting/client/rectangle_update_decoder.cc View 1 7 chunks +7 lines, -9 lines 0 comments Download
M remoting/host/client_session.cc View 1 4 chunks +6 lines, -9 lines 0 comments Download
M remoting/host/event_executor_linux.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M remoting/host/event_executor_mac.cc View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M remoting/host/event_executor_win.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M remoting/host/screen_recorder.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
M tools/clang/plugins/ChromeClassTester.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Wez
This CL moves ::media::AutoTaskRunner to be ::ScopedTaskRunner, on the basis that it's a useful class ...
9 years, 7 months ago (2011-05-26 02:42:16 UTC) #1
awong
LGTM I found this a useful class, and had been meaning to migrate it up ...
9 years, 7 months ago (2011-05-26 02:51:38 UTC) #2
scherkus (not reviewing)
driveby! http://codereview.chromium.org/7062013/diff/1/base/task.cc File base/task.cc (right): http://codereview.chromium.org/7062013/diff/1/base/task.cc#newcode1 base/task.cc:1: // Copyright (c) 2010 The Chromium Authors. All ...
9 years, 7 months ago (2011-05-26 02:57:16 UTC) #3
Wez
On 2011/05/26 02:51:38, awong wrote: > http://codereview.chromium.org/7062013/diff/1/base/task.h > File base/task.h (right): > > http://codereview.chromium.org/7062013/diff/1/base/task.h#newcode551 > ...
9 years, 7 months ago (2011-05-26 06:05:47 UTC) #4
Wez
On 2011/05/26 02:57:16, scherkus wrote: > driveby! > > http://codereview.chromium.org/7062013/diff/1/base/task.cc > File base/task.cc (right): > ...
9 years, 7 months ago (2011-05-26 06:06:28 UTC) #5
brettw
http://codereview.chromium.org/7062013/diff/1/base/task.h File base/task.h (right): http://codereview.chromium.org/7062013/diff/1/base/task.h#newcode551 base/task.h:551: class ScopedTaskRunner { I agree that using the base ...
9 years, 7 months ago (2011-05-26 17:17:22 UTC) #6
dmac
Drive by http://codereview.chromium.org/7062013/diff/1/media/filters/decoder_base.h File media/filters/decoder_base.h (right): http://codereview.chromium.org/7062013/diff/1/media/filters/decoder_base.h#newcode105 media/filters/decoder_base.h:105: done_cb->Run(); Maybe I'm being slow this morning, ...
9 years, 7 months ago (2011-05-26 17:55:42 UTC) #7
Wez
I've addressed everyone's comments, I think, and added a few unit tests. http://codereview.chromium.org/7062013/diff/1/base/task.cc File base/task.cc ...
9 years, 7 months ago (2011-05-26 18:48:21 UTC) #8
awong
LGTM w/ style nits. Thanks for making all these changes! Looks good from my side. ...
9 years, 7 months ago (2011-05-26 19:01:01 UTC) #9
Wez
http://codereview.chromium.org/7062013/diff/5002/base/task.h File base/task.h (right): http://codereview.chromium.org/7062013/diff/5002/base/task.h#newcode567 base/task.h:567: } On 2011/05/26 19:01:01, awong wrote: > style-OCD nit: ...
9 years, 7 months ago (2011-05-26 20:53:46 UTC) #10
Wez
Would an OWNER of base like to take look, please?
9 years, 7 months ago (2011-05-26 20:55:00 UTC) #11
brettw
LGTM with style nit. http://codereview.chromium.org/7062013/diff/5003/base/task.cc File base/task.cc (right): http://codereview.chromium.org/7062013/diff/5003/base/task.cc#newcode37 base/task.cc:37: } // namespace base Two ...
9 years, 7 months ago (2011-05-26 20:59:04 UTC) #12
commit-bot: I haz the power
Try job failure for 7062013-1025 on win: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=33852
9 years, 7 months ago (2011-05-26 21:11:54 UTC) #13
commit-bot: I haz the power
Try job failure for 7062013-15 on linux_clang: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_clang&number=1744
9 years, 7 months ago (2011-05-26 23:59:46 UTC) #14
commit-bot: I haz the power
Try job failure for 7062013-15 on win: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=33936
9 years, 7 months ago (2011-05-27 01:54:22 UTC) #15
commit-bot: I haz the power
Change committed as 86971
9 years, 7 months ago (2011-05-27 04:17:25 UTC) #16
commit-bot: I haz the power
9 years, 7 months ago (2011-05-27 19:35:13 UTC) #17
Change committed as 87068

Powered by Google App Engine
This is Rietveld 408576698