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

Issue 8467002: Fix double-initialization of CComModule. (Closed)

Created:
9 years, 1 month ago by dmazzoni
Modified:
9 years, 1 month ago
CC:
chromium-reviews, zork+watch_chromium.org, hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, tfarina, Paweł Hajdan Jr., yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, brettw-cc_chromium.org, ctguil+watch_chromium.org, dhollowa
Visibility:
Public.

Description

Fix double-initialization of CComModule. This should allow ATL to work in all build configurations by dynamically creating a CComModule only if needed. BUG=102736 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109953

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 4

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 5

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -17 lines) Patch
M chrome/browser/accessibility/browser_accessibility_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/accessibility/browser_views_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/accessibility/renderer_accessibility_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -7 lines 0 comments Download
A ui/base/win/atl_module.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +38 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
dmazzoni
I think this is the right solution. Note that this has been working fine for ...
9 years, 1 month ago (2011-11-04 06:33:32 UTC) #1
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/8467002/diff/3001/base/win/atl_module.cc File base/win/atl_module.cc (right): http://codereview.chromium.org/8467002/diff/3001/base/win/atl_module.cc#newcode18 base/win/atl_module.cc:18: // Make sure COM is initialized for this thread; ...
9 years, 1 month ago (2011-11-04 17:25:34 UTC) #2
dmazzoni
On 2011/11/04 17:25:34, cpu wrote: > http://codereview.chromium.org/8467002/diff/3001/base/win/atl_module.cc > File base/win/atl_module.cc (right): > > http://codereview.chromium.org/8467002/diff/3001/base/win/atl_module.cc#newcode18 > ...
9 years, 1 month ago (2011-11-04 18:26:54 UTC) #3
rvargas (doing something else)
http://codereview.chromium.org/8467002/diff/7001/base/win/atl_module.cc File base/win/atl_module.cc (right): http://codereview.chromium.org/8467002/diff/7001/base/win/atl_module.cc#newcode15 base/win/atl_module.cc:15: static CComModule module; Shouldn't this should be CAtlModule? The ...
9 years, 1 month ago (2011-11-04 21:53:03 UTC) #4
dmazzoni
http://codereview.chromium.org/8467002/diff/7001/base/win/atl_module.cc File base/win/atl_module.cc (right): http://codereview.chromium.org/8467002/diff/7001/base/win/atl_module.cc#newcode15 base/win/atl_module.cc:15: static CComModule module; On 2011/11/04 21:53:03, rvargas wrote: > ...
9 years, 1 month ago (2011-11-04 22:34:47 UTC) #5
rvargas (doing something else)
http://codereview.chromium.org/8467002/diff/7001/base/win/atl_module.cc File base/win/atl_module.cc (right): http://codereview.chromium.org/8467002/diff/7001/base/win/atl_module.cc#newcode15 base/win/atl_module.cc:15: static CComModule module; On 2011/11/04 22:34:47, Dominic Mazzoni wrote: ...
9 years, 1 month ago (2011-11-04 22:52:14 UTC) #6
dmazzoni
http://codereview.chromium.org/8467002/diff/7001/base/win/atl_module.cc File base/win/atl_module.cc (right): http://codereview.chromium.org/8467002/diff/7001/base/win/atl_module.cc#newcode15 base/win/atl_module.cc:15: static CComModule module; On 2011/11/04 22:52:14, rvargas wrote: > ...
9 years, 1 month ago (2011-11-04 23:01:30 UTC) #7
dmazzoni
http://codereview.chromium.org/8467002/diff/10003/views/accessibility/native_view_accessibility_win.cc File views/accessibility/native_view_accessibility_win.cc (right): http://codereview.chromium.org/8467002/diff/10003/views/accessibility/native_view_accessibility_win.cc#newcode27 views/accessibility/native_view_accessibility_win.cc:27: ::CoInitialize(NULL); // Safe to call more than once. On ...
9 years, 1 month ago (2011-11-05 06:18:46 UTC) #8
rvargas (doing something else)
LGTM
9 years, 1 month ago (2011-11-06 18:27:48 UTC) #9
dmazzoni
Darin, could I get approval for base/ ?
9 years, 1 month ago (2011-11-06 19:23:43 UTC) #10
cpu_(ooo_6.6-7.5)
lgtm. sorry for the delay.
9 years, 1 month ago (2011-11-08 02:23:47 UTC) #11
Nico
We're trying to get rid of ATL, and this seems to be used mostly in ...
9 years, 1 month ago (2011-11-09 18:00:57 UTC) #12
dmazzoni
Yes, I'd love to get rid of ATL. It's not quite that simple - for ...
9 years, 1 month ago (2011-11-09 18:21:04 UTC) #13
Nico
It looks like this could live in ui as well, which would be less central ...
9 years, 1 month ago (2011-11-09 18:37:22 UTC) #14
Nico
http://codereview.chromium.org/8467002/diff/12011/base/win/atl_module.h File base/win/atl_module.h (right): http://codereview.chromium.org/8467002/diff/12011/base/win/atl_module.h#newcode29 base/win/atl_module.h:29: static CComModule module; > I'm currently trying to remove ...
9 years, 1 month ago (2011-11-09 18:47:18 UTC) #15
dmazzoni
On Wed, Nov 9, 2011 at 10:37 AM, <thakis@chromium.org> wrote: > It looks like this ...
9 years, 1 month ago (2011-11-09 18:52:41 UTC) #16
dmazzoni
+sky for approval of ui/base/win For context, this is only intended to be a quick ...
9 years, 1 month ago (2011-11-14 07:18:44 UTC) #17
sky
Rubber stamp LGTM
9 years, 1 month ago (2011-11-14 16:12:22 UTC) #18
Nico
http://codereview.chromium.org/8467002/diff/26001/ui/base/win/atl_module.h File ui/base/win/atl_module.h (right): http://codereview.chromium.org/8467002/diff/26001/ui/base/win/atl_module.h#newcode25 ui/base/win/atl_module.h:25: // rather than in the "base" module. "ui" http://codereview.chromium.org/8467002/diff/26001/ui/base/win/atl_module.h#newcode29 ...
9 years, 1 month ago (2011-11-14 16:21:13 UTC) #19
dmazzoni
http://codereview.chromium.org/8467002/diff/26001/ui/base/win/atl_module.h File ui/base/win/atl_module.h (right): http://codereview.chromium.org/8467002/diff/26001/ui/base/win/atl_module.h#newcode25 ui/base/win/atl_module.h:25: // rather than in the "base" module. On 2011/11/14 ...
9 years, 1 month ago (2011-11-14 16:27:41 UTC) #20
Nico
Thanks for the quick reply! http://codereview.chromium.org/8467002/diff/26001/ui/base/win/atl_module.h File ui/base/win/atl_module.h (right): http://codereview.chromium.org/8467002/diff/26001/ui/base/win/atl_module.h#newcode29 ui/base/win/atl_module.h:29: static CComModule module; > ...
9 years, 1 month ago (2011-11-14 16:34:28 UTC) #21
dmazzoni
On 2011/11/14 16:34:28, Nico wrote: > Can we try if that works then? Done. Just ...
9 years, 1 month ago (2011-11-14 16:59:12 UTC) #22
Nico
LGTM > How about we just get rid of ATL before then? From what I ...
9 years, 1 month ago (2011-11-14 17:03:42 UTC) #23
dmazzoni
On Mon, Nov 14, 2011 at 9:03 AM, <thakis@chromium.org> wrote: > How about we just ...
9 years, 1 month ago (2011-11-14 17:06:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/8467002/33002
9 years, 1 month ago (2011-11-14 19:31:20 UTC) #25
commit-bot: I haz the power
9 years, 1 month ago (2011-11-14 20:40:09 UTC) #26
Try job failure for 8467002-33002 (retry) on linux_rel for step "ui_tests".
It's a second try, previously, step "ui_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&...

Powered by Google App Engine
This is Rietveld 408576698