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

Unified Diff: components/offline_items_collection/core/android/offline_item_bridge.cc

Issue 2861863002: offline_items_collection : Added helper class to determine progress (Closed)
Patch Set: comments Created 3 years, 7 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
Index: components/offline_items_collection/core/android/offline_item_bridge.cc
diff --git a/components/offline_items_collection/core/android/offline_item_bridge.cc b/components/offline_items_collection/core/android/offline_item_bridge.cc
index a21c50c5343268455511bd40a78029d3b3e0cd9b..9cb70e5f88ae148e252f2ecb0614ca501a4b5ad0 100644
--- a/components/offline_items_collection/core/android/offline_item_bridge.cc
+++ b/components/offline_items_collection/core/android/offline_item_bridge.cc
@@ -37,7 +37,8 @@ ScopedJavaLocalRef<jobject> createOfflineItemAndMaybeAddToList(
ConvertUTF8ToJavaString(env, item.page_url.spec()),
ConvertUTF8ToJavaString(env, item.original_url.spec()),
item.is_off_the_record, static_cast<jint>(item.state), item.is_resumable,
- item.allow_metered, item.received_bytes, item.percent_completed,
+ item.allow_metered, item.received_bytes, item.progress.value,
+ item.progress.max.value_or(-1), static_cast<jint>(item.progress.unit),
item.time_remaining_ms);
}

Powered by Google App Engine
This is Rietveld 408576698