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); |
} |