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

Issue 10800092: Use libadblockplus update checker (Closed)

Created:
June 6, 2013, 3:18 p.m. by Wladimir Palant
Modified:
June 19, 2013, 5:25 p.m.
Reviewers:
Felix Dahlke, Oleksandr
Visibility:
Public.

Description

This has been tested and works fine. The TODO comments refer to a dictionary access that needs to be shared between plugin and engine, as well as a progress indicator that requires changes to the WebRequest interface.

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressed review comments #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+306 lines, -839 lines) Patch
M AdblockPlusEngine.vcxproj View 1 chunk +6 lines, -0 lines 0 comments Download
M AdblockPlusPlugin.vcxproj View 3 chunks +0 lines, -4 lines 0 comments Download
A src/engine/Resource.h View 1 1 chunk +10 lines, -0 lines 0 comments Download
A src/engine/Updater.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A src/engine/Updater.cpp View 1 1 chunk +168 lines, -0 lines 3 comments Download
A src/engine/engine.rc View 1 1 chunk +57 lines, -0 lines 0 comments Download
M src/engine/main.cpp View 1 2 chunks +17 lines, -15 lines 0 comments Download
M src/plugin/AdblockPlus.rc View 1 chunk +0 lines, -54 lines 0 comments Download
M src/plugin/PluginClass.h View 1 chunk +0 lines, -3 lines 0 comments Download
M src/plugin/PluginClass.cpp View 4 chunks +0 lines, -26 lines 2 comments Download
M src/plugin/PluginClassThread.cpp View 3 chunks +1 line, -88 lines 0 comments Download
M src/plugin/PluginConfiguration.h View 3 chunks +2 lines, -12 lines 0 comments Download
M src/plugin/PluginConfiguration.cpp View 5 chunks +4 lines, -46 lines 0 comments Download
R src/plugin/PluginDownloadDialog.h View 1 chunk +0 lines, -128 lines 0 comments Download
R src/plugin/PluginDownloadDialog.cpp View 1 chunk +0 lines, -270 lines 0 comments Download
M src/plugin/PluginSettings.h View 3 chunks +0 lines, -5 lines 0 comments Download
M src/plugin/PluginSettings.cpp View 2 chunks +0 lines, -77 lines 0 comments Download
R src/plugin/PluginUpdateDialog.h View 1 chunk +0 lines, -44 lines 0 comments Download
R src/plugin/PluginUpdateDialog.cpp View 1 chunk +0 lines, -49 lines 0 comments Download
M src/plugin/Resource.h View 1 chunk +0 lines, -14 lines 0 comments Download
M src/plugin/abp.h View 1 chunk +2 lines, -4 lines 0 comments Download
M src/shared/Utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/shared/Utils.cpp View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 8
Wladimir Palant
June 6, 2013, 3:19 p.m. (2013-06-06 15:19:06 UTC) #1
Wladimir Palant
http://codereview.adblockplus.org/10800092/diff/1/src/engine/Updater.h File src/engine/Updater.h (right): http://codereview.adblockplus.org/10800092/diff/1/src/engine/Updater.h#newcode14 src/engine/Updater.h:14: void RunDownload(); I don't think that the two functions ...
June 6, 2013, 3:22 p.m. (2013-06-06 15:22:53 UTC) #2
Felix Dahlke
http://codereview.adblockplus.org/10800092/diff/1/src/engine/Updater.cpp File src/engine/Updater.cpp (right): http://codereview.adblockplus.org/10800092/diff/1/src/engine/Updater.cpp#newcode57 src/engine/Updater.cpp:57: CallbackType* callback = reinterpret_cast<CallbackType*>(param); I'd use an auto_ptr. What ...
June 6, 2013, 5:44 p.m. (2013-06-06 17:44:00 UTC) #3
Wladimir Palant
I addressed all comments made by Felix and a few other minor issues.
June 7, 2013, 5:30 a.m. (2013-06-07 05:30:43 UTC) #4
Felix Dahlke
LGTM
June 7, 2013, 7:35 a.m. (2013-06-07 07:35:01 UTC) #5
Oleksandr
http://codereview.adblockplus.org/10800092/diff/7001/src/engine/Updater.cpp File src/engine/Updater.cpp (right): http://codereview.adblockplus.org/10800092/diff/7001/src/engine/Updater.cpp#newcode77 src/engine/Updater.cpp:77: : jsEngine(jsEngine), url(url), tempFile(GetAppDataPath() + L"\\update.exe") What if we ...
June 7, 2013, 8:37 a.m. (2013-06-07 08:37:44 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/10800092/diff/7001/src/engine/Updater.cpp File src/engine/Updater.cpp (right): http://codereview.adblockplus.org/10800092/diff/7001/src/engine/Updater.cpp#newcode77 src/engine/Updater.cpp:77: : jsEngine(jsEngine), url(url), tempFile(GetAppDataPath() + L"\\update.exe") On 2013/06/07 08:37:44, ...
June 7, 2013, 12:46 p.m. (2013-06-07 12:46:55 UTC) #7
Oleksandr
June 7, 2013, 12:49 p.m. (2013-06-07 12:49:33 UTC) #8
On 2013/06/07 12:46:55, Wladimir Palant wrote:
> http://codereview.adblockplus.org/10800092/diff/7001/src/engine/Updater.cpp
> File src/engine/Updater.cpp (right):
> 
>
http://codereview.adblockplus.org/10800092/diff/7001/src/engine/Updater.cpp#n...
> src/engine/Updater.cpp:77: : jsEngine(jsEngine), url(url),
> tempFile(GetAppDataPath() + L"\\update.exe")
> On 2013/06/07 08:37:44, Oleksandr wrote:
> > What if we decide we'd like to go with an MSI installer?
> 
> Given the limitations of a pure MSI solution - we won't.
> 
>
http://codereview.adblockplus.org/10800092/diff/7001/src/plugin/PluginClass.cpp
> File src/plugin/PluginClass.cpp (right):
> 
>
http://codereview.adblockplus.org/10800092/diff/7001/src/plugin/PluginClass.c...
> src/plugin/PluginClass.cpp:104: settings->SetString(SETTING_PLUGIN_VERSION,
> IEPLUGIN_VERSION);
> On 2013/06/07 08:37:44, Oleksandr wrote:
> > Looks like the whole "if" can be removed here. We do not store an updated
> plugin
> > version anywhere anyway, it seems.
> 
> Yep, lots of code can be removed here - I am just not sure which parts of it
are
> still used. I've tried to remove code only minimally here, we probably can
> remove IsFirstRunUpdate() and everything dependent on it - cleaning up is on
the
> tasks list for the release.


I can handle the cleanup later then. LGTM

Powered by Google App Engine
This is Rietveld