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

Issue 3764005: cashew: Service: set "in progress" flag before requesting usage update (Closed)

Created:
10 years, 2 months ago by Vince Laviano
Modified:
9 years ago
Reviewers:
Jason Glasgow
CC:
chromium-os-reviews_chromium.org, Vince Laviano
Visibility:
Public.

Description

cashew: Service: set "in progress" flag before requesting usage update This CL fixes an inconsistency in the request_in_progress_ flag that triggers an assertion failure. Root cause: OnRequestComplete asserts that the request_in_progress_ flag is set. RequestUsageUpdate sets the flag *after* initiating an update via DataPlanProvider::RequestUsageUpdate. However, it's possible for the OnRequestComplete callback to be invoked from within this initial call, prior to the flag being set. Resolution: Set the flag first, then initiate the update. BUG=chromium-os:7687 TEST=None Change-Id: I302093d0ae51107aed350e590327e7a9f44a2ae0 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=23cc9cf

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M src/service.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 1 (0 generated)
Jason Glasgow
10 years, 2 months ago (2010-10-14 02:41:44 UTC) #1
LGTM

Powered by Google App Engine
This is Rietveld 408576698