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

Unified Diff: chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc

Issue 2848703004: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: rev Created 3 years, 8 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: chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
diff --git a/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc b/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
index 928418495a72cce89553fd27e0f3a02693f18b20..81fc1dc0108689b7f00f02c172e45af8da5e7b9d 100644
--- a/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
+++ b/chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc
@@ -462,7 +462,8 @@ static jlong Init(JNIEnv* env,
adapter = new DownloadUIAdapter(
offline_page_model, request_coordinator,
base::MakeUnique<DownloadUIAdapterDelegate>(offline_page_model));
- DownloadUIAdapter::AttachToOfflinePageModel(adapter, offline_page_model);
+ DownloadUIAdapter::AttachToOfflinePageModel(base::WrapUnique(adapter),
+ offline_page_model);
}
return reinterpret_cast<jlong>(

Powered by Google App Engine
This is Rietveld 408576698