summaryrefslogtreecommitdiffstats
path: root/components/bookmarks/browser/bookmark_client.h
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-14 00:11:31 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-14 00:11:31 +0000
commit0b0e8a11546c1d88f79795ee36b621646baf4ee3 (patch)
tree649241411b8ef54c4661d0e4e216a5f4ec77b671 /components/bookmarks/browser/bookmark_client.h
parent3e58411cd5dc8c004b97de6b1a8c32a1d16a5afb (diff)
downloadchromium_src-0b0e8a11546c1d88f79795ee36b621646baf4ee3.zip
chromium_src-0b0e8a11546c1d88f79795ee36b621646baf4ee3.tar.gz
chromium_src-0b0e8a11546c1d88f79795ee36b621646baf4ee3.tar.bz2
Introduce ChromeBookmarkClientFactory
Fix BookmarkModelFactory to really build a BookmarkModel object and introduce another factory ChromeBookmarkClientFactory to build the ChromeBookmarkClient and manage the correct dependency between the two objects. Change BookmarkModelFactory::GetChromeBookmarkClientForProfile and clients to instead use ChromeBookmarkClientFactory::GetForProfile. BUG=364865 TBR=blundell@chromium.org Review URL: https://codereview.chromium.org/330343002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277138 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/bookmarks/browser/bookmark_client.h')
-rw-r--r--components/bookmarks/browser/bookmark_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/bookmarks/browser/bookmark_client.h b/components/bookmarks/browser/bookmark_client.h
index fa0dc63..9a4d663 100644
--- a/components/bookmarks/browser/bookmark_client.h
+++ b/components/bookmarks/browser/bookmark_client.h
@@ -13,6 +13,7 @@
#include "base/task/cancelable_task_tracker.h"
#include "components/bookmarks/browser/bookmark_storage.h"
#include "components/favicon_base/favicon_callback.h"
+#include "components/keyed_service/core/keyed_service.h"
class BookmarkNode;
class BookmarkPermanentNode;
@@ -24,7 +25,7 @@ struct UserMetricsAction;
// This class abstracts operations that depends on the embedder's environment,
// e.g. Chrome.
-class BookmarkClient {
+class BookmarkClient : public KeyedService {
public:
// Types representing a set of BookmarkNode and a mapping from BookmarkNode
// to the number of time the corresponding URL has been typed by the user in