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

Unified Diff: components/bookmarks/core/browser/bookmark_index.cc

Issue 253753005: Move bookmarks' production code to components/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@367656
Patch Set: Fix compilation for win_chromium_x64_rel Created 6 years, 8 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: components/bookmarks/core/browser/bookmark_index.cc
diff --git a/chrome/browser/bookmarks/bookmark_index.cc b/components/bookmarks/core/browser/bookmark_index.cc
similarity index 98%
rename from chrome/browser/bookmarks/bookmark_index.cc
rename to components/bookmarks/core/browser/bookmark_index.cc
index 415f04b25c183c1c2b938baa03a6dbafea982dca..5899442865cf495a58f6d7ab72bbac7982387a9d 100644
--- a/chrome/browser/bookmarks/bookmark_index.cc
+++ b/components/bookmarks/core/browser/bookmark_index.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/bookmarks/bookmark_index.h"
+#include "components/bookmarks/core/browser/bookmark_index.h"
#include <algorithm>
#include <functional>
@@ -13,10 +13,10 @@
#include "base/logging.h"
#include "base/strings/string16.h"
#include "base/strings/utf_offset_string_conversions.h"
-#include "chrome/browser/bookmarks/bookmark_utils.h"
#include "components/bookmarks/core/browser/bookmark_client.h"
#include "components/bookmarks/core/browser/bookmark_match.h"
#include "components/bookmarks/core/browser/bookmark_node.h"
+#include "components/bookmarks/core/browser/bookmark_utils.h"
#include "components/query_parser/query_parser.h"
#include "components/query_parser/snippet.h"
#include "third_party/icu/source/common/unicode/normalizer2.h"
@@ -32,7 +32,8 @@ base::string16 Normalize(const base::string16& text) {
UErrorCode status = U_ZERO_ERROR;
const icu::Normalizer2* normalizer2 =
icu::Normalizer2::getInstance(NULL, "nfkc", UNORM2_COMPOSE, status);
- icu::UnicodeString unicode_text(text.data(), text.length());
+ icu::UnicodeString unicode_text(
+ text.data(), static_cast<int32_t>(text.length()));
icu::UnicodeString unicode_normalized_text;
normalizer2->normalize(unicode_text, unicode_normalized_text, status);
if (U_FAILURE(status))
« no previous file with comments | « components/bookmarks/core/browser/bookmark_index.h ('k') | components/bookmarks/core/browser/bookmark_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698