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

Issue 10310030: Convert references to FileSystem & Co. into shared pointers (avoid use after free) (Closed)

Created:
April 18, 2013, 11:59 a.m. by Wladimir Palant
Modified:
April 18, 2013, 2:43 p.m.
Reviewers:
Felix Dahlke, Oleksandr
Visibility:
Public.

Description

Also simplified the JsEngine constructor signature while at it.

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -267 lines) Patch
M include/AdblockPlus.h View 1 chunk +2 lines, -0 lines 0 comments Download
A include/AdblockPlus/DefaultErrorCallback.h View 1 chunk +15 lines, -0 lines 0 comments Download
M include/AdblockPlus/DefaultWebRequest.h View 1 chunk +3 lines, -43 lines 0 comments Download
M include/AdblockPlus/ErrorCallback.h View 1 chunk +4 lines, -0 lines 0 comments Download
M include/AdblockPlus/FileSystem.h View 1 chunk +2 lines, -0 lines 0 comments Download
M include/AdblockPlus/JsEngine.h View 2 chunks +18 lines, -24 lines 0 comments Download
M include/AdblockPlus/WebRequest.h View 2 chunks +3 lines, -4 lines 0 comments Download
M libadblockplus.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M shell/src/Main.cpp View 2 chunks +1 line, -14 lines 0 comments Download
M src/ConsoleJsObject.cpp View 1 chunk +2 lines, -1 line 0 comments Download
A src/DefaultErrorCallback.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M src/DefaultWebRequestCurl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/FileSystemJsObject.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M src/JsEngine.cpp View 3 chunks +39 lines, -7 lines 3 comments Download
M src/WebRequestJsObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M test/AppInfoJsObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M test/ConsoleJsObject.cpp View 1 chunk +9 lines, -7 lines 0 comments Download
M test/FileSystemJsObject.cpp View 1 chunk +51 lines, -41 lines 0 comments Download
M test/FilterEngineStubs.cpp View 5 chunks +14 lines, -37 lines 0 comments Download
M test/GlobalJsObject.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M test/JsEngine.cpp View 1 chunk +14 lines, -16 lines 0 comments Download
M test/JsValue.cpp View 9 chunks +9 lines, -27 lines 0 comments Download
M test/WebRequest.cpp View 4 chunks +14 lines, -33 lines 0 comments Download

Messages

Total messages: 6
Wladimir Palant
April 18, 2013, noon (2013-04-18 12:00:15 UTC) #1
Felix Dahlke
http://codereview.adblockplus.org/10310030/diff/1/src/JsEngine.cpp File src/JsEngine.cpp (right): http://codereview.adblockplus.org/10310030/diff/1/src/JsEngine.cpp#newcode138 src/JsEngine.cpp:138: fileSystem.reset(new DefaultFileSystem()); I'd rather have this in the constructor ...
April 18, 2013, 1:30 p.m. (2013-04-18 13:30:12 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/10310030/diff/1/src/JsEngine.cpp File src/JsEngine.cpp (right): http://codereview.adblockplus.org/10310030/diff/1/src/JsEngine.cpp#newcode138 src/JsEngine.cpp:138: fileSystem.reset(new DefaultFileSystem()); On 2013/04/18 13:30:12, Felix H. Dahlke wrote: ...
April 18, 2013, 1:59 p.m. (2013-04-18 13:59:55 UTC) #3
Felix Dahlke
LGTM
April 18, 2013, 2:03 p.m. (2013-04-18 14:03:49 UTC) #4
Felix Dahlke
LGTM http://codereview.adblockplus.org/10310030/diff/1/src/JsEngine.cpp File src/JsEngine.cpp (right): http://codereview.adblockplus.org/10310030/diff/1/src/JsEngine.cpp#newcode138 src/JsEngine.cpp:138: fileSystem.reset(new DefaultFileSystem()); On 2013/04/18 13:59:55, Wladimir Palant wrote: ...
April 18, 2013, 2:04 p.m. (2013-04-18 14:04:12 UTC) #5
Wladimir Palant
April 18, 2013, 2:42 p.m. (2013-04-18 14:42:42 UTC) #6

Powered by Google App Engine
This is Rietveld