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

Unified Diff: chrome/browser/history/chrome_history_client.cc

Issue 305443004: Introduce HistoryClient interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@371825
Patch Set: Created 6 years, 7 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/history/chrome_history_client.cc
diff --git a/chrome/browser/history/chrome_history_client.cc b/chrome/browser/history/chrome_history_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..34bebb59d98a5e6207044bc2b7f27d87e30e2abc
--- /dev/null
+++ b/chrome/browser/history/chrome_history_client.cc
@@ -0,0 +1,19 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/history/chrome_history_client.h"
+
+#include "chrome/browser/history/history_service.h"
+
+namespace history {
+
+ChromeHistoryClient::ChromeHistoryClient(Profile* profile) {
+ history_service_.reset(new HistoryService(this, profile));
+}
+
+void ChromeHistoryClient::Shutdown() {
+ history_service_->Shutdown();
+}
+
+} // namespace history

Powered by Google App Engine
This is Rietveld 408576698