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

Unified Diff: components/bookmarks/browser/bookmark_model.h

Issue 306293006: Introduce ChromeBookmarkClientFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@364865
Patch Set: Created 6 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/bookmarks/browser/bookmark_model.h
diff --git a/components/bookmarks/browser/bookmark_model.h b/components/bookmarks/browser/bookmark_model.h
index 9c4d8c41872cef3fea06250585aaac715933bb36..febe87017b6472b1637047e8c1deb13fb285d269 100644
--- a/components/bookmarks/browser/bookmark_model.h
+++ b/components/bookmarks/browser/bookmark_model.h
@@ -19,6 +19,7 @@
#include "base/synchronization/waitable_event.h"
#include "components/bookmarks/browser/bookmark_client.h"
#include "components/bookmarks/browser/bookmark_node.h"
+#include "components/keyed_service/core/keyed_service.h"
#include "ui/gfx/image/image.h"
#include "url/gurl.h"
@@ -58,7 +59,7 @@ class TestBookmarkClient;
//
// You should NOT directly create a BookmarkModel, instead go through the
// BookmarkModelFactory.
-class BookmarkModel {
+class BookmarkModel : public KeyedService {
public:
struct URLAndTitle {
GURL url;
@@ -68,10 +69,10 @@ class BookmarkModel {
// |index_urls| says whether URLs should be stored in the BookmarkIndex
// in addition to bookmark titles.
BookmarkModel(BookmarkClient* client, bool index_urls);
- ~BookmarkModel();
+ virtual ~BookmarkModel();
- // Invoked prior to destruction to release any necessary resources.
- void Shutdown();
+ // KeyedService:
+ virtual void Shutdown() OVERRIDE;
// Loads the bookmarks. This is called upon creation of the
// BookmarkModel. You need not invoke this directly.
« chrome/test/base/testing_profile.cc ('K') | « components/bookmarks/browser/bookmark_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698