Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Issue 7601019: Component updater eight piece (Closed)

Created:
9 years, 4 months ago by cpu_(ooo_6.6-7.5)
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Component updater eight piece "in which we beef up the unit tests and find several bugs" 1- When parsing the xml response components not mentioned there were left in "updating" state so they got stranded there. 2- Wrong condition : if ((item->status != CrxUpdateItem::kNoUpdate) || (item->status != CrxUpdateItem::kUpToDate)) So again some components are stranded in the kNoUpdate state. Also a new precondition ScheduleNextRun() cannot be called if a url_fetcher is in progress. BUG=61602 TEST=included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96048

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -16 lines) Patch
M chrome/browser/component_updater/component_updater_interceptor.h View 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/component_updater/component_updater_interceptor.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/component_updater/component_updater_service.cc View 9 chunks +24 lines, -10 lines 0 comments Download
M chrome/browser/component_updater/component_updater_service_unittest.cc View 1 7 chunks +53 lines, -4 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
cpu_(ooo_6.6-7.5)
9 years, 4 months ago (2011-08-09 04:08:14 UTC) #1
asargent_no_longer_on_chrome
LGTM with a few minor comments. http://codereview.chromium.org/7601019/diff/1/chrome/browser/component_updater/component_updater_service.cc File chrome/browser/component_updater/component_updater_service.cc (right): http://codereview.chromium.org/7601019/diff/1/chrome/browser/component_updater/component_updater_service.cc#newcode537 chrome/browser/component_updater/component_updater_service.cc:537: url_fetcher_.reset(); Not a ...
9 years, 4 months ago (2011-08-09 17:56:19 UTC) #2
cpu_(ooo_6.6-7.5)
9 years, 4 months ago (2011-08-09 20:21:53 UTC) #3
http://codereview.chromium.org/7601019/diff/1/chrome/browser/component_update...
File chrome/browser/component_updater/component_updater_service.cc (right):

http://codereview.chromium.org/7601019/diff/1/chrome/browser/component_update...
chrome/browser/component_updater/component_updater_service.cc:537:
url_fetcher_.reset();
I would like to do that but then
 I can't do source->GetResponseAsString(..)

On 2011/08/09 17:56:19, Antony Sargent wrote:
> Not a big deal, but it looks a little weird to reset the fetcher in either
case
> here. Would it read better as the following?
> 
> bool success = FetchSuccess(*source);
> url_fetcher_.reset();
> if (success) {
>   ...
> } else {
>   ...
> }
>

http://codereview.chromium.org/7601019/diff/1/chrome/browser/component_update...
File chrome/browser/component_updater/component_updater_service_unittest.cc
(right):

http://codereview.chromium.org/7601019/diff/1/chrome/browser/component_update...
chrome/browser/component_updater/component_updater_service_unittest.cc:43: if
(--times_ != 0)
On 2011/08/09 17:56:19, Antony Sargent wrote:
> Should this be "> 0" to protect against off-by-one errors when times becomes
> negative?

Done.

http://codereview.chromium.org/7601019/diff/1/chrome/browser/component_update...
chrome/browser/component_updater/component_updater_service_unittest.cc:127:
test_config_ = new TestConfigurator;
The config is owned by the component update service
scoped_ptr<Config> config_

On 2011/08/09 17:56:19, Antony Sargent wrote:
> Are you leaking test_config_ here? I don't see it getting cleaned up anywhere.
> Also, could the member variable just be a full object instead of a pointer? It
> doesn't look like you need to pass any arguments to the constructor or
anything.
>

Powered by Google App Engine
This is Rietveld 408576698