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

Unified Diff: components/bookmarks/browser/titled_url_match.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 | « components/bookmarks/browser/titled_url_match.h ('k') | components/omnibox/browser/bookmark_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/titled_url_match.cc
diff --git a/components/bookmarks/browser/bookmark_match.cc b/components/bookmarks/browser/titled_url_match.cc
similarity index 78%
rename from components/bookmarks/browser/bookmark_match.cc
rename to components/bookmarks/browser/titled_url_match.cc
index f813cbbbb7f5c23bdd6325e836327218c8b755df..313ae4ef17704659e8cc8fa45a64447a4202bf14 100644
--- a/components/bookmarks/browser/bookmark_match.cc
+++ b/components/bookmarks/browser/titled_url_match.cc
@@ -2,21 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/bookmarks/browser/bookmark_match.h"
+#include "components/bookmarks/browser/titled_url_match.h"
#include "base/logging.h"
#include "base/strings/string16.h"
namespace bookmarks {
-BookmarkMatch::BookmarkMatch() : node(NULL) {}
+TitledUrlMatch::TitledUrlMatch() : node(NULL) {}
-BookmarkMatch::BookmarkMatch(const BookmarkMatch& other) = default;
+TitledUrlMatch::TitledUrlMatch(const TitledUrlMatch& other) = default;
-BookmarkMatch::~BookmarkMatch() {}
+TitledUrlMatch::~TitledUrlMatch() {}
// static
-std::vector<size_t> BookmarkMatch::OffsetsFromMatchPositions(
+std::vector<size_t> TitledUrlMatch::OffsetsFromMatchPositions(
const MatchPositions& match_positions) {
std::vector<size_t> offsets;
for (MatchPositions::const_iterator i = match_positions.begin();
@@ -28,7 +28,7 @@ std::vector<size_t> BookmarkMatch::OffsetsFromMatchPositions(
}
// static
-BookmarkMatch::MatchPositions BookmarkMatch::ReplaceOffsetsInMatchPositions(
+TitledUrlMatch::MatchPositions TitledUrlMatch::ReplaceOffsetsInMatchPositions(
const MatchPositions& match_positions,
const std::vector<size_t>& offsets) {
DCHECK_EQ(2 * match_positions.size(), offsets.size());
« no previous file with comments | « components/bookmarks/browser/titled_url_match.h ('k') | components/omnibox/browser/bookmark_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698