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 11048029: Allow Thread to initialize COM for Windows consumers who need it (Closed)

Created:
8 years, 2 months ago by Peter Kasting
Modified:
8 years, 1 month ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, sergeyu+watch_chromium.org, grt+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, lambroslambrou+watch_chromium.org, darin-cc_chromium.org, robertshield, alexeypa+watch_chromium.org, erikwright+watch_chromium.org, wez+watch_chromium.org, rmsousa+watch_chromium.org
Visibility:
Public.

Description

Add methods to base::Thread to allow Windows consumers to ask for COM to be intialized on the Thread. This makes one functional change: when COM is initialized in STA mode, the Thread is forced to use a TYPE_UI message loop. Most of the modified consumers here didn't previously do that, but after discussion with cpu and siggi, it seems safest, even though it's more heavyweight. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=163503

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Total comments: 3

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -235 lines) Patch
M base/threading/thread.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +27 lines, -4 lines 0 comments Download
M base/threading/thread.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +33 lines, -3 lines 0 comments Download
M chrome_frame/buggy_bho_handling.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome_frame/urlmon_url_request.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -20 lines 0 comments Download
M chrome_frame/urlmon_url_request.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -18 lines 0 comments Download
M chrome_frame/utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -28 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -27 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -19 lines 0 comments Download
M media/audio/audio_input_device_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/audio_input_volume_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M media/audio/audio_manager_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -22 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -20 lines 0 comments Download
M media/audio/fake_audio_output_stream.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/setup/daemon_controller_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -40 lines 0 comments Download
M ui/base/dialogs/base_shell_dialog_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -33 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Peter Kasting
cpu: Review brettw: base/threading/, content/browser/renderer_host/ OWNERS ananta: chrome_frame/ OWNERS fischman: media/audio/ OWNERS jamiewalch: remoting/host/setup/ OWNERS ...
8 years, 2 months ago (2012-10-03 23:05:07 UTC) #1
jam
I'm not a fan of having non-windows platforms have to use empty but "windowsy" classes ...
8 years, 2 months ago (2012-10-03 23:11:35 UTC) #2
jam
On 2012/10/03 23:11:35, John Abd-El-Malek wrote: > I'm not a fan of having non-windows platforms ...
8 years, 2 months ago (2012-10-03 23:13:25 UTC) #3
Peter Kasting
On 2012/10/03 23:11:35, John Abd-El-Malek wrote: > I'm not a fan of having non-windows platforms ...
8 years, 2 months ago (2012-10-03 23:13:53 UTC) #4
Peter Kasting
On 2012/10/03 23:13:53, Peter Kasting wrote: > On 2012/10/03 23:11:35, John Abd-El-Malek wrote: > > ...
8 years, 2 months ago (2012-10-03 23:17:52 UTC) #5
Peter Kasting
On 2012/10/03 23:13:25, John Abd-El-Malek wrote: > On 2012/10/03 23:11:35, John Abd-El-Malek wrote: > > ...
8 years, 2 months ago (2012-10-03 23:20:20 UTC) #6
Jamie
https://codereview.chromium.org/11048029/diff/8008/base/threading/com_thread_win.cc File base/threading/com_thread_win.cc (right): https://codereview.chromium.org/11048029/diff/8008/base/threading/com_thread_win.cc#newcode19 base/threading/com_thread_win.cc:19: if (!use_mta_) Is this test correct? It's doing the ...
8 years, 2 months ago (2012-10-03 23:46:04 UTC) #7
Peter Kasting
https://codereview.chromium.org/11048029/diff/8008/base/threading/com_thread_win.cc File base/threading/com_thread_win.cc (right): https://codereview.chromium.org/11048029/diff/8008/base/threading/com_thread_win.cc#newcode19 base/threading/com_thread_win.cc:19: if (!use_mta_) On 2012/10/03 23:46:04, Jamie wrote: > Is ...
8 years, 2 months ago (2012-10-03 23:47:11 UTC) #8
sky
LGTM
8 years, 2 months ago (2012-10-04 00:11:48 UTC) #9
Ami GONE FROM CHROMIUM
peanut-gallery: can you avoid jam@'s concerns by giving Thread() a void EnableCOMThingyIfOnWindows(bool use_mta); method that ...
8 years, 2 months ago (2012-10-04 00:18:11 UTC) #10
Peter Kasting
On 2012/10/04 00:18:11, Ami Fischman wrote: > peanut-gallery: can you avoid jam@'s concerns by giving ...
8 years, 2 months ago (2012-10-04 00:34:32 UTC) #11
Jamie
remoting/ lgtm
8 years, 2 months ago (2012-10-04 01:06:05 UTC) #12
Peter Kasting
Brett, when you review this, could you comment on whether you think this mechanism or ...
8 years, 2 months ago (2012-10-04 03:29:59 UTC) #13
jam
On Wed, Oct 3, 2012 at 4:17 PM, <pkasting@chromium.org> wrote: > On 2012/10/03 23:13:53, Peter ...
8 years, 2 months ago (2012-10-04 05:49:37 UTC) #14
Peter Kasting
On Wed, Oct 3, 2012 at 4:30 PM, John Abd-El-Malek <jam@chromium.org> wrote: > On Wed, ...
8 years, 2 months ago (2012-10-04 06:09:41 UTC) #15
jam
On Wed, Oct 3, 2012 at 4:50 PM, Peter Kasting <pkasting@chromium.org> wrote: > On Wed, ...
8 years, 2 months ago (2012-10-04 06:10:14 UTC) #16
jam
On Wed, Oct 3, 2012 at 6:02 PM, Peter Kasting <pkasting@chromium.org> wrote: > On Wed, ...
8 years, 2 months ago (2012-10-04 06:15:09 UTC) #17
Peter Kasting
On Wed, Oct 3, 2012 at 5:53 PM, John Abd-El-Malek <jam@chromium.org> wrote: > On Wed, ...
8 years, 2 months ago (2012-10-04 06:18:23 UTC) #18
alexeypa (please no reviews)
On 2012/10/04 03:29:59, Peter Kasting wrote: > Brett, when you review this, could you comment ...
8 years, 2 months ago (2012-10-04 15:23:49 UTC) #19
Wez
On 2012/10/04 15:23:49, alexeypa wrote: > On 2012/10/04 03:29:59, Peter Kasting wrote: > > Brett, ...
8 years, 2 months ago (2012-10-04 17:34:59 UTC) #20
Peter Kasting
On 2012/10/04 15:23:49, alexeypa wrote: > My 2c: it feels like the problem could be ...
8 years, 2 months ago (2012-10-04 18:08:31 UTC) #21
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/11048029/diff/7015/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): http://codereview.chromium.org/11048029/diff/7015/content/browser/renderer_host/render_process_host_impl.cc#newcode140 content/browser/renderer_host/render_process_host_impl.cc:140: } I rather not derive from base::Thread, I rather ...
8 years, 2 months ago (2012-10-04 18:09:02 UTC) #22
Peter Kasting
On 2012/10/04 17:34:59, Wez wrote: > How about adding MessageLoop::TYPE_COM, which would be a UI ...
8 years, 2 months ago (2012-10-04 18:13:11 UTC) #23
jam
On 2012/10/04 18:13:11, Peter Kasting wrote: > On 2012/10/04 17:34:59, Wez wrote: > > How ...
8 years, 2 months ago (2012-10-04 18:16:52 UTC) #24
Peter Kasting
On 2012/10/04 18:09:02, cpu wrote: > http://codereview.chromium.org/11048029/diff/7015/content/browser/renderer_host/render_process_host_impl.cc > File content/browser/renderer_host/render_process_host_impl.cc (right): > > http://codereview.chromium.org/11048029/diff/7015/content/browser/renderer_host/render_process_host_impl.cc#newcode140 > ...
8 years, 2 months ago (2012-10-04 18:18:09 UTC) #25
cpu_(ooo_6.6-7.5)
maybe trivial but the point is that the COM-ness is (or should be) a one ...
8 years, 2 months ago (2012-10-05 01:12:26 UTC) #26
brettw
I don't actually have a strong opinion but I can note that we have been ...
8 years, 2 months ago (2012-10-05 04:18:19 UTC) #27
Peter Kasting
Rewrote to add an OS_WIN method on Thread for specifying that COM should be initialized. ...
8 years, 2 months ago (2012-10-16 01:18:09 UTC) #28
ananta
LGTM with one nit. http://codereview.chromium.org/11048029/diff/25001/chrome_frame/urlmon_url_request.cc File chrome_frame/urlmon_url_request.cc (right): http://codereview.chromium.org/11048029/diff/25001/chrome_frame/urlmon_url_request.cc#newcode1406 chrome_frame/urlmon_url_request.cc:1406: #if defined(OS_WIN) We don't need ...
8 years, 2 months ago (2012-10-16 01:26:43 UTC) #29
Peter Kasting
http://codereview.chromium.org/11048029/diff/25001/chrome_frame/urlmon_url_request.cc File chrome_frame/urlmon_url_request.cc (right): http://codereview.chromium.org/11048029/diff/25001/chrome_frame/urlmon_url_request.cc#newcode1406 chrome_frame/urlmon_url_request.cc:1406: #if defined(OS_WIN) On 2012/10/16 01:26:43, ananta wrote: > We ...
8 years, 2 months ago (2012-10-16 01:42:09 UTC) #30
grt (UTC plus 2)
http://codereview.chromium.org/11048029/diff/26014/remoting/host/setup/daemon_controller_win.cc File remoting/host/setup/daemon_controller_win.cc (right): http://codereview.chromium.org/11048029/diff/26014/remoting/host/setup/daemon_controller_win.cc#newcode161 remoting/host/setup/daemon_controller_win.cc:161: #if defined(OS_WIN) this is a _win.cc file, so the ...
8 years, 2 months ago (2012-10-16 01:58:12 UTC) #31
Ami GONE FROM CHROMIUM
still LGTM for media/ http://codereview.chromium.org/11048029/diff/26014/base/threading/thread.cc File base/threading/thread.cc (right): http://codereview.chromium.org/11048029/diff/26014/base/threading/thread.cc#newcode197 base/threading/thread.cc:197: com_initializer_.reset(); observation: this variable is ...
8 years, 2 months ago (2012-10-16 02:52:03 UTC) #32
alexeypa (please no reviews)
remoting/* - lgtm
8 years, 2 months ago (2012-10-16 15:26:56 UTC) #33
sky
SLGTM
8 years, 2 months ago (2012-10-16 16:46:58 UTC) #34
cpu_(ooo_6.6-7.5)
lgtm
8 years, 2 months ago (2012-10-16 17:32:45 UTC) #35
Peter Kasting
brettw: ping
8 years, 2 months ago (2012-10-17 17:35:50 UTC) #36
brettw
8 years, 2 months ago (2012-10-18 19:43:11 UTC) #37
base lgtm

Powered by Google App Engine
This is Rietveld 408576698