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

Issue 11376067: Fix updating (Closed)

Created:
Aug. 8, 2013, 9:56 a.m. by Felix Dahlke
Modified:
Aug. 15, 2013, 2:35 p.m.
Visibility:
Public.

Description

This fixes an issue I introduced in http://codereview.adblockplus.org/11304082/

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M src/engine/Main.cpp View 5 chunks +6 lines, -5 lines 1 comment Download
M src/engine/Updater.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/engine/Updater.cpp View 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 4
Felix Dahlke
Aug. 8, 2013, 9:57 a.m. (2013-08-08 09:57:26 UTC) #1
Oleksandr
LGTM
Aug. 8, 2013, 10:06 a.m. (2013-08-08 10:06:17 UTC) #2
Wladimir Palant
LGTM but I would like the API cleanup indicated below to happen nevertheless (can happen ...
Aug. 13, 2013, 9:24 a.m. (2013-08-13 09:24:39 UTC) #3
Felix Dahlke
Aug. 15, 2013, 2:35 p.m. (2013-08-15 14:35:34 UTC) #4
On 2013/08/13 09:24:39, Wladimir Palant wrote:
> LGTM but I would like the API cleanup indicated below to happen nevertheless
> (can happen after the release).
> 
> http://codereview.adblockplus.org/11376067/diff/1/src/engine/Main.cpp
> File src/engine/Main.cpp (right):
> 
>
http://codereview.adblockplus.org/11376067/diff/1/src/engine/Main.cpp#newcode302
> src/engine/Main.cpp:302: updater->Update();
> updater->Update(params[0]->AsString()) would make more sense IMHO.

I was wondering what's better, that or making it explicit that the URL is part
of the state with a setter. Don't have a strong opinion, so I went with passing
the parameter to Update():

https://hg.adblockplus.org/adblockplusie/rev/55b8a17d1631

Powered by Google App Engine
This is Rietveld