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

Unified Diff: chrome/browser/bookmarks/bookmark_index.cc

Issue 105193002: Replace string16 with base::string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « chrome/browser/bookmarks/bookmark_index.h ('k') | chrome/browser/bookmarks/bookmark_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_index.cc
diff --git a/chrome/browser/bookmarks/bookmark_index.cc b/chrome/browser/bookmarks/bookmark_index.cc
index 3af121effde1cf45f98d84a70b201186590ef3a6..81c24166165803c1ea9c466d6d13e83d73e5f63a 100644
--- a/chrome/browser/bookmarks/bookmark_index.cc
+++ b/chrome/browser/bookmarks/bookmark_index.cc
@@ -76,7 +76,7 @@ void BookmarkIndex::Remove(const BookmarkNode* node) {
}
void BookmarkIndex::GetBookmarksWithTitlesMatching(
- const string16& query,
+ const base::string16& query,
size_t max_count,
std::vector<BookmarkTitleMatch>* results) {
std::vector<string16> terms = ExtractQueryWords(query);
@@ -163,7 +163,7 @@ void BookmarkIndex::AddMatchToResults(
}
}
-bool BookmarkIndex::GetBookmarksWithTitleMatchingTerm(const string16& term,
+bool BookmarkIndex::GetBookmarksWithTitleMatchingTerm(const base::string16& term,
bool first_term,
Matches* matches) {
Index::const_iterator i = index_.lower_bound(term);
@@ -245,7 +245,7 @@ void BookmarkIndex::CombineMatches(const Index::const_iterator& index_i,
}
}
-std::vector<string16> BookmarkIndex::ExtractQueryWords(const string16& query) {
+std::vector<string16> BookmarkIndex::ExtractQueryWords(const base::string16& query) {
std::vector<string16> terms;
if (query.empty())
return std::vector<string16>();
@@ -256,12 +256,12 @@ std::vector<string16> BookmarkIndex::ExtractQueryWords(const string16& query) {
return terms;
}
-void BookmarkIndex::RegisterNode(const string16& term,
+void BookmarkIndex::RegisterNode(const base::string16& term,
const BookmarkNode* node) {
index_[term].insert(node);
}
-void BookmarkIndex::UnregisterNode(const string16& term,
+void BookmarkIndex::UnregisterNode(const base::string16& term,
const BookmarkNode* node) {
Index::iterator i = index_.find(term);
if (i == index_.end()) {
« no previous file with comments | « chrome/browser/bookmarks/bookmark_index.h ('k') | chrome/browser/bookmarks/bookmark_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698