Index: components/offline_items_collection/core/android/offline_content_aggregator_bridge.cc |
diff --git a/components/offline_items_collection/core/android/offline_content_aggregator_bridge.cc b/components/offline_items_collection/core/android/offline_content_aggregator_bridge.cc |
index 892a0b7fbaf631cc4d01273d07eb75c8bd0cf50d..eef6057d986a95b01425ab0aefde911ce3d211f0 100644 |
--- a/components/offline_items_collection/core/android/offline_content_aggregator_bridge.cc |
+++ b/components/offline_items_collection/core/android/offline_content_aggregator_bridge.cc |
@@ -55,8 +55,9 @@ base::android::ScopedJavaLocalRef<jobject> |
OfflineContentAggregatorBridge::GetBridgeForOfflineContentAggregator( |
OfflineContentAggregator* aggregator) { |
if (!aggregator->GetUserData(kOfflineContentAggregatorBridgeUserDataKey)) { |
- aggregator->SetUserData(kOfflineContentAggregatorBridgeUserDataKey, |
- new OfflineContentAggregatorBridge(aggregator)); |
+ aggregator->SetUserData( |
+ kOfflineContentAggregatorBridgeUserDataKey, |
+ base::WrapUnique(new OfflineContentAggregatorBridge(aggregator))); |
} |
OfflineContentAggregatorBridge* bridge = |
static_cast<OfflineContentAggregatorBridge*>( |