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

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

Issue 1198373002: Split HistoryClient in two objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@1192403002
Patch Set: Add comments in ChromeHistoryBackendClient Created 5 years, 6 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_service.cc
diff --git a/components/history/core/browser/history_service.cc b/components/history/core/browser/history_service.cc
index 0f136703fcdf559113e4d3f0cd15a4729f2d8115..da0ed64137e740b8f4b79894060d797b5ffa0d98 100644
--- a/components/history/core/browser/history_service.cc
+++ b/components/history/core/browser/history_service.cc
@@ -32,6 +32,7 @@
#include "base/trace_event/trace_event.h"
#include "components/history/core/browser/download_row.h"
#include "components/history/core/browser/history_backend.h"
+#include "components/history/core/browser/history_backend_client.h"
#include "components/history/core/browser/history_client.h"
#include "components/history/core/browser/history_database_params.h"
#include "components/history/core/browser/history_db_task.h"
@@ -877,7 +878,8 @@ bool HistoryService::Init(
scoped_refptr<HistoryBackend> backend(new HistoryBackend(
new BackendDelegate(weak_ptr_factory_.GetWeakPtr(),
base::ThreadTaskRunnerHandle::Get()),
- history_client_.get(), thread_->task_runner()));
+ history_client_ ? history_client_->CreateBackendClient() : nullptr,
+ thread_->task_runner()));
history_backend_.swap(backend);
ScheduleTask(PRIORITY_UI,
« no previous file with comments | « components/history/core/browser/history_client.cc ('k') | components/history/core/browser/thumbnail_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698