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

Issue 11348087: Add AutoThread types for Windows that initialize COM. (Closed)

Created:
8 years, 1 month ago by Wez
Modified:
8 years ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Add AutoThread types for Windows that initialize COM. This CL adds AutoThread types that create a UI MessageLoop on the thread and initialize COM for single- or multi-threaded used. This is a re-land of BUG=145856 TBR=alexeypa Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=169595

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix MTA type not to create a UI message-loop. #

Patch Set 3 : Separate COM init type from thread type. #

Total comments: 10

Patch Set 4 : Address review comments. #

Patch Set 5 : Add missing OS checks. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -11 lines) Patch
M remoting/base/auto_thread.h View 1 2 3 chunks +22 lines, -3 lines 0 comments Download
M remoting/base/auto_thread.cc View 1 2 3 4 7 chunks +62 lines, -7 lines 0 comments Download
M remoting/base/auto_thread_unittest.cc View 1 2 4 chunks +64 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Wez
PTAL; this is one of two CLs that try different approaches to adding COM initialization ...
8 years, 1 month ago (2012-11-16 08:39:32 UTC) #1
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/11348087/diff/1/remoting/base/auto_thread.h File remoting/base/auto_thread.h (right): https://chromiumcodereview.appspot.com/11348087/diff/1/remoting/base/auto_thread.h#newcode40 remoting/base/auto_thread.h:40: TYPE_UI_COM_MTA MTA does not need a message pump AFAIR. ...
8 years, 1 month ago (2012-11-16 18:16:09 UTC) #2
Sergey Ulanov
https://chromiumcodereview.appspot.com/11348087/diff/1/remoting/base/auto_thread.h File remoting/base/auto_thread.h (right): https://chromiumcodereview.appspot.com/11348087/diff/1/remoting/base/auto_thread.h#newcode34 remoting/base/auto_thread.h:34: enum Type { Do we really need this type? ...
8 years, 1 month ago (2012-11-16 19:23:32 UTC) #3
Wez
Sounds like you both prefer adding init_with_mta() and CreateWithMta() methods; will follow up with that ...
8 years, 1 month ago (2012-11-16 19:54:54 UTC) #4
Wez
PTAL https://chromiumcodereview.appspot.com/11348087/diff/2002/remoting/base/auto_thread.cc File remoting/base/auto_thread.cc (right): https://chromiumcodereview.appspot.com/11348087/diff/2002/remoting/base/auto_thread.cc#newcode46 remoting/base/auto_thread.cc:46: #endif note-to-self: Remove this.
8 years, 1 month ago (2012-11-22 21:57:15 UTC) #5
alexeypa (please no reviews)
lgtm with my comments addressed. https://chromiumcodereview.appspot.com/11348087/diff/2002/remoting/base/auto_thread.cc File remoting/base/auto_thread.cc (right): https://chromiumcodereview.appspot.com/11348087/diff/2002/remoting/base/auto_thread.cc#newcode24 remoting/base/auto_thread.cc:24: scoped_ptr<base::win::ScopedCOMInitializer> CreateComInitializerWithType( nit: CreateComInitializer() ...
8 years ago (2012-11-26 19:16:13 UTC) #6
Wez
FYI https://chromiumcodereview.appspot.com/11348087/diff/2002/remoting/base/auto_thread.cc File remoting/base/auto_thread.cc (right): https://chromiumcodereview.appspot.com/11348087/diff/2002/remoting/base/auto_thread.cc#newcode24 remoting/base/auto_thread.cc:24: scoped_ptr<base::win::ScopedCOMInitializer> CreateComInitializerWithType( On 2012/11/26 19:16:13, alexeypa wrote: > ...
8 years ago (2012-11-27 02:22:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/11348087/10001
8 years ago (2012-11-27 02:24:36 UTC) #8
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-11-27 02:44:09 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wez@chromium.org/11348087/9005
8 years ago (2012-11-27 03:56:09 UTC) #10
commit-bot: I haz the power
8 years ago (2012-11-27 07:04:24 UTC) #11
Message was sent while issue was closed.
Change committed as 169595

Powered by Google App Engine
This is Rietveld 408576698