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

Unified Diff: chrome/browser/extensions/api/bookmarks/bookmarks_api.h

Issue 1233673002: Fix componentization of chrome/browser/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix "gn check" and compilation on Mac Created 5 years, 5 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/extensions/api/bookmarks/bookmarks_api.h
diff --git a/chrome/browser/extensions/api/bookmarks/bookmarks_api.h b/chrome/browser/extensions/api/bookmarks/bookmarks_api.h
index 2ea2857fc65aecd2a2bf67eb68c8ad02f52c0e41..f25e7eaa74154c2d8629680917c4f78e4b4ce4b8 100644
--- a/chrome/browser/extensions/api/bookmarks/bookmarks_api.h
+++ b/chrome/browser/extensions/api/bookmarks/bookmarks_api.h
@@ -18,13 +18,16 @@
#include "extensions/browser/event_router.h"
#include "ui/shell_dialogs/select_file_dialog.h"
-class ChromeBookmarkClient;
-
namespace base {
class FilePath;
class ListValue;
}
+namespace bookmarks {
+class BookmarkModel;
+class ManagedBookmarkService;
+}
+
namespace content {
class BrowserContext;
}
@@ -82,7 +85,7 @@ class BookmarkEventRouter : public bookmarks::BookmarkModelObserver {
content::BrowserContext* browser_context_;
bookmarks::BookmarkModel* model_;
- ChromeBookmarkClient* client_;
+ bookmarks::ManagedBookmarkService* managed_;
DISALLOW_COPY_AND_ASSIGN(BookmarkEventRouter);
};
@@ -132,8 +135,8 @@ class BookmarksFunction : public ChromeAsyncExtensionFunction,
// Helper to get the BookmarkModel.
bookmarks::BookmarkModel* GetBookmarkModel();
- // Helper to get the ChromeBookmarkClient.
- ChromeBookmarkClient* GetChromeBookmarkClient();
+ // Helper to get the ManagedBookmarkService.
+ bookmarks::ManagedBookmarkService* GetManagedBookmarkService();
// Helper to get the bookmark id as int64 from the given string id.
// Sets error_ to an error string if the given id string can't be parsed
« no previous file with comments | « chrome/browser/extensions/api/bookmarks/bookmark_apitest.cc ('k') | chrome/browser/extensions/api/bookmarks/bookmarks_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698