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

Unified Diff: components/history/core/browser/history_backend.cc

Issue 2847013003: 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: components/history/core/browser/history_backend.cc
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
index 3c38c2de9ae0cd87bd409be258889e44b1e3fb1d..2ab8db29706c31618fd98fa350acc6caad45a35c 100644
--- a/components/history/core/browser/history_backend.cc
+++ b/components/history/core/browser/history_backend.cc
@@ -2484,10 +2484,11 @@ base::SupportsUserData::Data* HistoryBackend::GetUserData(
return supports_user_data_helper_->GetUserData(key);
}
-void HistoryBackend::SetUserData(const void* key,
- base::SupportsUserData::Data* data) {
+void HistoryBackend::SetUserData(
+ const void* key,
+ std::unique_ptr<base::SupportsUserData::Data> data) {
DCHECK(supports_user_data_helper_);
- supports_user_data_helper_->SetUserData(key, data);
+ supports_user_data_helper_->SetUserData(key, std::move(data));
}
void HistoryBackend::ProcessDBTask(
« no previous file with comments | « components/history/core/browser/history_backend.h ('k') | components/history/ios/browser/web_state_top_sites_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698