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

Unified Diff: src/service.cc

Issue 3764005: cashew: Service: set "in progress" flag before requesting usage update (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/service.cc
diff --git a/src/service.cc b/src/service.cc
index e2562ee7322f2b6ae8d0a41b63ad53f1278c2695..0735bfc55f6252a2fb301027e487b33168a959db 100644
--- a/src/service.cc
+++ b/src/service.cc
@@ -496,11 +496,12 @@ void Service::RequestUsageUpdate() {
// allows this request (e.g., if we can only make API requests over the
// cellular service itself, is this service the default route?)
+ request_in_progress_ = true;
if (!provider_->RequestUsageUpdate()) {
DLOG(WARNING) << path_ << ": RequestUsageUpdate: request failed";
+ request_in_progress_ = false;
} else {
DLOG(INFO) << path_ << ": RequestUsageUpdate: request succeeded";
- request_in_progress_ = true;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698