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

Issue 4912420225024000: Issue #1234 - Convert strings associated with URL's (Closed)

Created:
Oct. 14, 2014, 10:17 p.m. by Eric
Modified:
Jan. 13, 2015, 4:46 p.m.
Reviewers:
sergei, Oleksandr
CC:
Felix Dahlke
Visibility:
Public.

Description

Issue #1234 - Convert strings associated with URL's The focus on this change is to convert strings that represent URL's from ATL::CString to std::wstring, especially when such strings appear as arguments in function signatures. Removed CString version UnescapeUrl. Left unconverted was one case where we don't yet have an equivalent CString member function.

Patch Set 1 #

Total comments: 29

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : Rebased #

Total comments: 2

Patch Set 5 : #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -144 lines) Patch
M src/plugin/AdblockPlusDomTraverser.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/plugin/AdblockPlusDomTraverser.cpp View 1 2 3 6 chunks +10 lines, -10 lines 0 comments Download
M src/plugin/PluginClass.h View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M src/plugin/PluginClass.cpp View 1 2 3 4 11 chunks +36 lines, -37 lines 0 comments Download
M src/plugin/PluginClientBase.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M src/plugin/PluginClientBase.cpp View 1 2 3 4 1 chunk +0 lines, -18 lines 0 comments Download
M src/plugin/PluginDebug.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/plugin/PluginDebug.cpp View 3 chunks +11 lines, -11 lines 0 comments Download
M src/plugin/PluginDomTraverserBase.h View 1 2 3 4 4 chunks +15 lines, -17 lines 3 comments Download
M src/plugin/PluginFilter.cpp View 1 2 3 4 5 chunks +8 lines, -9 lines 0 comments Download
M src/plugin/PluginTabBase.h View 3 chunks +8 lines, -8 lines 0 comments Download
M src/plugin/PluginTabBase.cpp View 1 2 3 8 chunks +13 lines, -12 lines 0 comments Download
M src/plugin/PluginWbPassThrough.h View 1 2 3 4 1 chunk +2 lines, -2 lines 2 comments Download
M src/plugin/PluginWbPassThrough.cpp View 1 2 3 4 3 chunks +10 lines, -9 lines 0 comments Download

Messages

Total messages: 11
Eric
Oct. 14, 2014, 10:25 p.m. (2014-10-14 22:25:06 UTC) #1
sergei
http://codereview.adblockplus.org/4912420225024000/diff/5629499534213120/src/plugin/AdblockPlusDomTraverser.cpp File src/plugin/AdblockPlusDomTraverser.cpp (right): http://codereview.adblockplus.org/4912420225024000/diff/5629499534213120/src/plugin/AdblockPlusDomTraverser.cpp#newcode55 src/plugin/AdblockPlusDomTraverser.cpp:55: SysFreeString(vAttr.bstrVal); It's not necessary to call SysFreeString here because ...
Oct. 17, 2014, 10:10 a.m. (2014-10-17 10:10:12 UTC) #2
Eric
http://codereview.adblockplus.org/4912420225024000/diff/5629499534213120/src/plugin/AdblockPlusDomTraverser.cpp File src/plugin/AdblockPlusDomTraverser.cpp (right): http://codereview.adblockplus.org/4912420225024000/diff/5629499534213120/src/plugin/AdblockPlusDomTraverser.cpp#newcode55 src/plugin/AdblockPlusDomTraverser.cpp:55: SysFreeString(vAttr.bstrVal); On 2014/10/17 10:10:12, sergei wrote: > It's not ...
Oct. 20, 2014, 2:36 a.m. (2014-10-20 02:36:01 UTC) #3
sergei
Beside the comments, I think we should rabase it after pushing Oleksandr's patch with the ...
Oct. 21, 2014, 9:45 a.m. (2014-10-21 09:45:17 UTC) #4
Eric
http://codereview.adblockplus.org/4912420225024000/diff/5629499534213120/src/plugin/AdblockPlusDomTraverser.cpp File src/plugin/AdblockPlusDomTraverser.cpp (right): http://codereview.adblockplus.org/4912420225024000/diff/5629499534213120/src/plugin/AdblockPlusDomTraverser.cpp#newcode55 src/plugin/AdblockPlusDomTraverser.cpp:55: SysFreeString(vAttr.bstrVal); On 2014/10/21 09:45:17, sergei wrote: > But it's ...
Oct. 21, 2014, 5:19 p.m. (2014-10-21 17:19:51 UTC) #5
Oleksandr
http://codereview.adblockplus.org/4912420225024000/diff/5629499534213120/src/plugin/PluginClass.cpp File src/plugin/PluginClass.cpp (right): http://codereview.adblockplus.org/4912420225024000/diff/5629499534213120/src/plugin/PluginClass.cpp#newcode211 src/plugin/PluginClass.cpp:211: BSTR bstrURL; Let's move back to this specific code ...
Jan. 5, 2015, 11:55 a.m. (2015-01-05 11:55:40 UTC) #6
Eric
New patch set has been rebased. I added one more conversion, which provided the opportunity ...
Jan. 5, 2015, 4:18 p.m. (2015-01-05 16:18:26 UTC) #7
sergei
LGTM, except two not important comments. http://codereview.adblockplus.org/4912420225024000/diff/5707274949492736/src/plugin/PluginDomTraverserBase.h File src/plugin/PluginDomTraverserBase.h (right): http://codereview.adblockplus.org/4912420225024000/diff/5707274949492736/src/plugin/PluginDomTraverserBase.h#newcode277 src/plugin/PluginDomTraverserBase.h:277: srcLegacy = L"http://" ...
Jan. 6, 2015, 1:18 p.m. (2015-01-06 13:18:17 UTC) #8
Eric
http://codereview.adblockplus.org/4912420225024000/diff/5707274949492736/src/plugin/PluginDomTraverserBase.h File src/plugin/PluginDomTraverserBase.h (right): http://codereview.adblockplus.org/4912420225024000/diff/5707274949492736/src/plugin/PluginDomTraverserBase.h#newcode277 src/plugin/PluginDomTraverserBase.h:277: srcLegacy = L"http://" + to_CString(m_domain) + srcLegacy; On 2015/01/06 ...
Jan. 6, 2015, 7:38 p.m. (2015-01-06 19:38:59 UTC) #9
Oleksandr
LGTM, but please replace to_Cstring for ToCString asap. http://codereview.adblockplus.org/4912420225024000/diff/5707274949492736/src/plugin/PluginDomTraverserBase.h File src/plugin/PluginDomTraverserBase.h (right): http://codereview.adblockplus.org/4912420225024000/diff/5707274949492736/src/plugin/PluginDomTraverserBase.h#newcode277 src/plugin/PluginDomTraverserBase.h:277: srcLegacy ...
Jan. 13, 2015, 10:08 a.m. (2015-01-13 10:08:06 UTC) #10
Eric
Jan. 13, 2015, 4:46 p.m. (2015-01-13 16:46:48 UTC) #11
On 2015/01/13 10:08:06, Oleksandr wrote:
> LGTM, but please replace to_Cstring for ToCString asap.

See http://codereview.adblockplus.org/5491870822039552/

Powered by Google App Engine
This is Rietveld