diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-11 15:22:32 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-11 15:22:32 +0000 |
commit | d8e41ed4a55e60be60d47de5bbcb8a027e85a879 (patch) | |
tree | e0feaa030fe3834c0fc871de7564ef74e9595b05 /chrome/browser/autocomplete/history_contents_provider.cc | |
parent | 7903e0262e2dda44eaa186d126cf88e2cc1470eb (diff) | |
download | chromium_src-d8e41ed4a55e60be60d47de5bbcb8a027e85a879.zip chromium_src-d8e41ed4a55e60be60d47de5bbcb8a027e85a879.tar.gz chromium_src-d8e41ed4a55e60be60d47de5bbcb8a027e85a879.tar.bz2 |
Renames BoomarkBarModel to BookmarkModel.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/1912
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_contents_provider.cc')
-rw-r--r-- | chrome/browser/autocomplete/history_contents_provider.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/autocomplete/history_contents_provider.cc b/chrome/browser/autocomplete/history_contents_provider.cc index 2d03db9..d8c91e8 100644 --- a/chrome/browser/autocomplete/history_contents_provider.cc +++ b/chrome/browser/autocomplete/history_contents_provider.cc @@ -45,7 +45,7 @@ void HistoryContentsProvider::Start(const AutocompleteInput& input, if (input.text().empty() || (input.type() == AutocompleteInput::INVALID) || // The history service or bookmark bar model must exist. !(profile_->GetHistoryService(Profile::EXPLICIT_ACCESS) || - profile_->GetBookmarkBarModel())) { + profile_->GetBookmarkModel())) { Stop(); return; } @@ -191,8 +191,8 @@ AutocompleteMatch HistoryContentsProvider::ResultToMatch( ACMatchClassification(0, ACMatchClassification::URL)); match.description = result.title(); match.starred = - (profile_->GetBookmarkBarModel() && - profile_->GetBookmarkBarModel()->IsBookmarked(result.url())); + (profile_->GetBookmarkModel() && + profile_->GetBookmarkModel()->IsBookmarked(result.url())); ClassifyDescription(result, &match); return match; @@ -227,8 +227,8 @@ int HistoryContentsProvider::CalculateRelevance( const history::URLResult& result) { bool in_title = !!result.title_match_positions().size(); bool is_starred = - (profile_->GetBookmarkBarModel() && - profile_->GetBookmarkBarModel()->IsBookmarked(result.url())); + (profile_->GetBookmarkModel() && + profile_->GetBookmarkModel()->IsBookmarked(result.url())); switch (input_type_) { case AutocompleteInput::UNKNOWN: @@ -258,7 +258,7 @@ int HistoryContentsProvider::CalculateRelevance( } void HistoryContentsProvider::QueryBookmarks(const AutocompleteInput& input) { - BookmarkBarModel* bookmark_model = profile_->GetBookmarkBarModel(); + BookmarkModel* bookmark_model = profile_->GetBookmarkModel(); if (!bookmark_model) return; @@ -266,7 +266,7 @@ void HistoryContentsProvider::QueryBookmarks(const AutocompleteInput& input) { // empty. TimeTicks start_time = TimeTicks::Now(); - std::vector<BookmarkBarModel::TitleMatch> matches; + std::vector<BookmarkModel::TitleMatch> matches; bookmark_model->GetBookmarksMatchingText(input.text(), kMaxMatchCount, &matches); for (size_t i = 0; i < matches.size(); ++i) @@ -276,7 +276,7 @@ void HistoryContentsProvider::QueryBookmarks(const AutocompleteInput& input) { } void HistoryContentsProvider::AddBookmarkTitleMatchToResults( - const BookmarkBarModel::TitleMatch& match) { + const BookmarkModel::TitleMatch& match) { history::URLResult url_result(match.node->GetURL(), match.match_positions); url_result.set_title(match.node->GetTitle()); results_.AppendURLBySwapping(&url_result); |