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

Unified Diff: chrome/browser/history/chrome_history_backend_client.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
« no previous file with comments | « no previous file | components/history/content/browser/web_contents_top_sites_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/chrome_history_backend_client.cc
diff --git a/chrome/browser/history/chrome_history_backend_client.cc b/chrome/browser/history/chrome_history_backend_client.cc
index 5630de205453dc9877773b359b44536cb7249940..8e7732c4716685acb059010d9145e64398eff9c8 100644
--- a/chrome/browser/history/chrome_history_backend_client.cc
+++ b/chrome/browser/history/chrome_history_backend_client.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/history/chrome_history_backend_client.h"
+#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "chrome/common/channel_info.h"
#include "components/bookmarks/browser/bookmark_model.h"
@@ -87,7 +88,7 @@ void ChromeHistoryBackendClient::OnHistoryBackendInitialized(
if (thumbnail_database) {
history_backend->SetUserData(
history::AndroidProviderBackend::GetUserDataKey(),
- new history::AndroidProviderBackend(
+ base::MakeUnique<history::AndroidProviderBackend>(
history_dir.Append(kAndroidCacheFilename), history_database,
thumbnail_database, this, history_backend));
}
« no previous file with comments | « no previous file | components/history/content/browser/web_contents_top_sites_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698