diff options
Diffstat (limited to 'chrome/browser/autocomplete/search_provider.cc')
-rw-r--r-- | chrome/browser/autocomplete/search_provider.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/search_provider.cc b/chrome/browser/autocomplete/search_provider.cc index fbc24b5..6f66694 100644 --- a/chrome/browser/autocomplete/search_provider.cc +++ b/chrome/browser/autocomplete/search_provider.cc @@ -31,6 +31,7 @@ #include "base/message_loop.h" #include "base/string_util.h" +#include "chrome/browser/bookmark_bar_model.h" #include "chrome/browser/browser_process.h" #include "chrome/browser/google_util.h" #include "chrome/browser/profile.h" @@ -238,7 +239,9 @@ void SearchProvider::OnQueryURLComplete(HistoryService::Handle handle, bool success, const history::URLRow* url_row, history::VisitVector* unused) { - bool is_starred = success ? url_row->starred() : false; + bool is_starred = + (success && profile_ && + profile_->GetBookmarkBarModel()->IsBookmarked(url_row->url())); star_requests_pending_ = false; // We can't just use star_request_consumer_.HasPendingRequests() here; // see comment in ConvertResultsToAutocompleteMatches(). |