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

Unified Diff: chrome/browser/android/bookmarks/bookmark_bridge.cc

Issue 2569333003: Rename BookmarkIndex to TitledUrlIndex and BookmarkMatch to TitledUrlMatch (Closed)
Patch Set: fix bookmark_bridge.cc Created 4 years 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
« no previous file with comments | « no previous file | chrome/browser/importer/profile_writer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/bookmarks/bookmark_bridge.cc
diff --git a/chrome/browser/android/bookmarks/bookmark_bridge.cc b/chrome/browser/android/bookmarks/bookmark_bridge.cc
index f56a182e177ea47d7932ec6050b5611706a641f9..dab1632471ba080789edfa6c95d79ff6ed60df4a 100644
--- a/chrome/browser/android/bookmarks/bookmark_bridge.cc
+++ b/chrome/browser/android/bookmarks/bookmark_bridge.cc
@@ -19,10 +19,10 @@
#include "chrome/browser/profiles/profile_android.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/browser/undo/bookmark_undo_service_factory.h"
-#include "components/bookmarks/browser/bookmark_match.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_utils.h"
#include "components/bookmarks/browser/scoped_group_bookmark_actions.h"
+#include "components/bookmarks/browser/titled_url_match.h"
#include "components/bookmarks/common/android/bookmark_type.h"
#include "components/bookmarks/common/bookmark_pref_names.h"
#include "components/bookmarks/managed/managed_bookmark_service.h"
@@ -586,13 +586,13 @@ void BookmarkBridge::SearchBookmarks(JNIEnv* env,
jint max_results) {
DCHECK(bookmark_model_->loaded());
- std::vector<bookmarks::BookmarkMatch> results;
+ std::vector<bookmarks::TitledUrlMatch> results;
bookmark_model_->GetBookmarksMatching(
base::android::ConvertJavaStringToUTF16(env, j_query),
max_results,
query_parser::MatchingAlgorithm::ALWAYS_PREFIX_SEARCH,
&results);
- for (const bookmarks::BookmarkMatch& match : results) {
+ for (const bookmarks::TitledUrlMatch& match : results) {
const BookmarkNode* node = static_cast<const BookmarkNode*>(match.node);
std::vector<int> title_match_start_positions;
« no previous file with comments | « no previous file | chrome/browser/importer/profile_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698