Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 5750789393874944: [IE] First round of ATL removal (Closed)

Created:
June 20, 2014, 9:22 p.m. by Eric
Modified:
Dec. 30, 2014, 1:47 p.m.
Reviewers:
Visibility:
Public.

Description

Eliminates CString, CComBSTR, and CComVariant. This review consists a few kinds of things: 1) Conversion of Microsoft-specific types to standard ones. 2) Replacement of member functions on removed types with utility functions, and their unit tests. 3) Support functions for dealing with COM arguments and return values. 4) Wrappers for COM objects and system calls. These are used to isolate the necessarily-remaining Microsoft-specific types (notable BSTR and VARIANT) into the wrapper classes. Most of the changes in (1) come in matched pairs, particularly in the member declarations. Some of the string algorithms needed more extensive rewrites. The doxygen files have been sitting in my local copy for a while, uncommitted. Type 'doxygen' (no arguments needed) in the root directory of the project to generate. The configuration is set to build call graphs, so GraphViz needs to be installed for that to work.

Patch Set 1 #

Total comments: 47

Patch Set 2 : Defect corrections #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M src/plugin/PluginMutex.cpp View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/plugin/Wrapper.h View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16
Eric
It's big, and it's finally ready.
June 20, 2014, 9:52 p.m. (2014-06-20 21:52:37 UTC) #1
Eric
Replacing Wladimir with Felix for this review.
June 25, 2014, 6:58 p.m. (2014-06-25 18:58:34 UTC) #2
Oleksandr
http://codereview.adblockplus.org/5750789393874944/diff/5629499534213120/src/plugin/AdblockPlusClient.cpp File src/plugin/AdblockPlusClient.cpp (right): http://codereview.adblockplus.org/5750789393874944/diff/5629499534213120/src/plugin/AdblockPlusClient.cpp#newcode32 src/plugin/AdblockPlusClient.cpp:32: std::unique_ptr< wchar_t[] > buffer ; Nit: Here and in ...
June 26, 2014, 12:48 a.m. (2014-06-26 00:48:43 UTC) #3
Eric
A number of the suggestions here I'd prefer to do later. We can create an ...
June 26, 2014, 3:13 p.m. (2014-06-26 15:13:56 UTC) #4
Felix Dahlke
http://codereview.adblockplus.org/5750789393874944/diff/5629499534213120/src/plugin/AdblockPlusClient.cpp File src/plugin/AdblockPlusClient.cpp (right): http://codereview.adblockplus.org/5750789393874944/diff/5629499534213120/src/plugin/AdblockPlusClient.cpp#newcode88 src/plugin/AdblockPlusClient.cpp:88: createProcRes = CreateProcessW(engineExecutablePath.c_str(), (LPWSTR) params, On 2014/06/26 15:13:56, Eric ...
June 30, 2014, 1:35 p.m. (2014-06-30 13:35:39 UTC) #5
Oleksandr
Doesn't look like code formatting changes have been addressed here. On 2014/06/30 13:35:39, Felix H. ...
July 7, 2014, 9:59 a.m. (2014-07-07 09:59:50 UTC) #6
sergei
On 2014/06/20 21:52:37, Eric wrote: > It's big, and it's finally ready. Yes, it's indeed ...
July 7, 2014, 4:19 p.m. (2014-07-07 16:19:05 UTC) #7
sergei
I've not tested it yet, just several comments regarding the style and the most bright ...
July 8, 2014, 11:58 a.m. (2014-07-08 11:58:34 UTC) #8
Eric
I'm replying to few important bits this morning. This is not a complete response. On ...
July 8, 2014, 2:43 p.m. (2014-07-08 14:43:45 UTC) #9
Eric
On 2014/07/07 09:59:50, Oleksandr wrote: > Doesn't look like code formatting changes have been addressed ...
July 8, 2014, 2:44 p.m. (2014-07-08 14:44:33 UTC) #10
Eric
On 2014/07/08 11:58:34, sergei wrote: > It's already causes conflicts while applying the patch Yes, ...
July 8, 2014, 4:08 p.m. (2014-07-08 16:08:28 UTC) #11
Eric
After making some (what I thought were going to be) quick comments, I decided to ...
July 8, 2014, 5:46 p.m. (2014-07-08 17:46:37 UTC) #12
Oleksandr
I agree with Sergei that this review is getting way too extensive. In fact even ...
July 9, 2014, 12:03 p.m. (2014-07-09 12:03:55 UTC) #13
Oleksandr
Can we close this? On 2014/07/09 12:03:55, Oleksandr wrote: > I agree with Sergei that ...
Aug. 5, 2014, 3:09 p.m. (2014-08-05 15:09:13 UTC) #14
Eric
On 2014/08/05 15:09:13, Oleksandr wrote: > Can we close this? I'm going to leave it ...
Aug. 5, 2014, 3:12 p.m. (2014-08-05 15:12:57 UTC) #15
Eric
Aug. 5, 2014, 5 p.m. (2014-08-05 17:00:38 UTC) #16
http://codereview.adblockplus.org/5750789393874944/diff/5629499534213120/src/...
File src/plugin/PluginFilter.cpp (left):

http://codereview.adblockplus.org/5750789393874944/diff/5629499534213120/src/...
src/plugin/PluginFilter.cpp:327: {
The old way. Explicit type conversions, and you have to dig through a bunch of
cruft to see the inputs and outputs.

http://codereview.adblockplus.org/5750789393874944/diff/5629499534213120/src/...
File src/plugin/PluginFilter.cpp (right):

http://codereview.adblockplus.org/5750789393874944/diff/5629499534213120/src/...
src/plugin/PluginFilter.cpp:339: {
The new way. A single line.

Powered by Google App Engine
This is Rietveld