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

Unified Diff: src/data_plan_provider.cc

Issue 3764012: cashew: support "usage requests allowed OTA only" policy (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git
Patch Set: jglasgow review comments 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 | src/default_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/data_plan_provider.cc
diff --git a/src/data_plan_provider.cc b/src/data_plan_provider.cc
index 6432627e1eb8d4e7a9635971fb910110f622383d..654c485ba931e88a2ff5803d160fe616365cf94c 100644
--- a/src/data_plan_provider.cc
+++ b/src/data_plan_provider.cc
@@ -34,7 +34,7 @@ const std::string& DataPlanProvider::GetUsageUrl() const {
void DataPlanProvider::SetUsageUrl(const std::string& usage_url) {
DLOG(INFO) << carrier_ << ": SetUsageUrl: url = " << usage_url;
- if (usage_url_.compare(usage_url)) {
+ if (usage_url_ != usage_url) {
usage_url_ = usage_url;
CancelPendingRequests();
}
« no previous file with comments | « no previous file | src/default_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698