summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_index.h
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 17:12:57 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 17:12:57 +0000
commit3b2af1d3dbeaceae71f2c294e761707b1947b623 (patch)
treef5a4622002f9c5a8bfb1a9cb0ddabb5ec6706a7d /chrome/browser/bookmarks/bookmark_index.h
parent0a6b991b695f51cfc1e9ffa2042a300f15118c62 (diff)
downloadchromium_src-3b2af1d3dbeaceae71f2c294e761707b1947b623.zip
chromium_src-3b2af1d3dbeaceae71f2c294e761707b1947b623.tar.gz
chromium_src-3b2af1d3dbeaceae71f2c294e761707b1947b623.tar.bz2
bookmarks: Pass BrowserContext to BookmarkIndex.
We are switching away from Profile, and content::BrowserContext is preferred over it. BUG=144783 R=sky@chromium.org Review URL: https://codereview.chromium.org/11411225 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_index.h')
-rw-r--r--chrome/browser/bookmarks/bookmark_index.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/bookmarks/bookmark_index.h b/chrome/browser/bookmarks/bookmark_index.h
index a955707..942a376 100644
--- a/chrome/browser/bookmarks/bookmark_index.h
+++ b/chrome/browser/bookmarks/bookmark_index.h
@@ -13,7 +13,6 @@
#include "base/string16.h"
class BookmarkNode;
-class Profile;
class QueryNode;
class QueryParser;
@@ -21,6 +20,10 @@ namespace bookmark_utils {
struct TitleMatch;
}
+namespace content {
+class BrowserContext;
+}
+
namespace history {
class URLDatabase;
}
@@ -32,10 +35,9 @@ class URLDatabase;
// BookmarkIndex maintains the index (index_) as a map of sets. The map (type
// Index) maps from a lower case string to the set (type NodeSet) of
// BookmarkNodes that contain that string in their title.
-
class BookmarkIndex {
public:
- explicit BookmarkIndex(Profile* profile);
+ explicit BookmarkIndex(content::BrowserContext* browser_context);
~BookmarkIndex();
// Invoked when a bookmark has been added to the model.
@@ -127,7 +129,7 @@ class BookmarkIndex {
Index index_;
- Profile* profile_;
+ content::BrowserContext* browser_context_;
DISALLOW_COPY_AND_ASSIGN(BookmarkIndex);
};