Commit c6703c9f authored by Jesse Doherty's avatar Jesse Doherty Committed by Commit Bot

Use the size of the staged log instead of the size of the hash to check if it...

Use the size of the staged log instead of the size of the hash to check if it should be uploaded on cellular.

Bug: 902465
Change-Id: Ic7ffe0c5d5639b99f590c4ad7ebbf334254ea05f
Reviewed-on: https://chromium-review.googlesource.com/c/1329501
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Reviewed-by: default avatarAlexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606926}
parent 5ba9f083
...@@ -127,7 +127,7 @@ void ReportingService::SendNextLog() { ...@@ -127,7 +127,7 @@ void ReportingService::SendNextLog() {
bool is_cellular_logic = client_->IsUMACellularUploadLogicEnabled(); bool is_cellular_logic = client_->IsUMACellularUploadLogicEnabled();
if (is_cellular_logic && data_use_tracker_ && if (is_cellular_logic && data_use_tracker_ &&
!data_use_tracker_->ShouldUploadLogOnCellular( !data_use_tracker_->ShouldUploadLogOnCellular(
log_store()->staged_log_hash().size())) { log_store()->staged_log().size())) {
upload_scheduler_->UploadOverDataUsageCap(); upload_scheduler_->UploadOverDataUsageCap();
upload_canceled = true; upload_canceled = true;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment