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

Unified Diff: chrome/browser/autocomplete/history_contents_provider.cc

Issue 1912: Renames BoomarkBarModel to BookmarkModel. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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/autocomplete/history_contents_provider.cc
===================================================================
--- chrome/browser/autocomplete/history_contents_provider.cc (revision 1988)
+++ chrome/browser/autocomplete/history_contents_provider.cc (working copy)
@@ -45,7 +45,7 @@
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 @@
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 @@
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 @@
}
void HistoryContentsProvider::QueryBookmarks(const AutocompleteInput& input) {
- BookmarkBarModel* bookmark_model = profile_->GetBookmarkBarModel();
+ BookmarkModel* bookmark_model = profile_->GetBookmarkModel();
if (!bookmark_model)
return;
@@ -266,7 +266,7 @@
// 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::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);

Powered by Google App Engine
This is Rietveld 408576698