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

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

Issue 386283002: Move bookmark_utils into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: components/bookmarks/browser/bookmark_utils.h
diff --git a/components/bookmarks/browser/bookmark_utils.h b/components/bookmarks/browser/bookmark_utils.h
index d4c846f96de558365c4982506dd24fa96427b7d3..32dfbe83b9e9285c8a636f7cb6fc1837ddf03742 100644
--- a/components/bookmarks/browser/bookmark_utils.h
+++ b/components/bookmarks/browser/bookmark_utils.h
@@ -16,10 +16,6 @@ class BookmarkModel;
class BookmarkNode;
class GURL;
-namespace bookmarks {
-class BookmarkClient;
-}
-
namespace user_prefs {
class PrefRegistrySyncable;
}
@@ -27,7 +23,9 @@ class PrefRegistrySyncable;
// A collection of bookmark utility functions used by various parts of the UI
// that show bookmarks (bookmark manager, bookmark bar view, ...) and other
// systems that involve indexing and searching bookmarks.
-namespace bookmark_utils {
+namespace bookmarks {
+
+class BookmarkClient;
// Fields to use when finding matching bookmarks.
struct QueryFields {
@@ -149,9 +147,9 @@ bool CanAllBeEditedByUser(bookmarks::BookmarkClient* client,
// by the user.
bool IsBookmarkedByUser(BookmarkModel* model, const GURL& url);
-} // namespace bookmark_utils
-
// Returns the node with |id|, or NULL if there is no node with |id|.
const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64 id);
+} // namespace bookmarks
+
#endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698