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

Unified Diff: components/bookmarks/core/browser/bookmark_utils.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_utils.cc
diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/components/bookmarks/core/browser/bookmark_utils.cc
similarity index 97%
rename from chrome/browser/bookmarks/bookmark_utils.cc
rename to components/bookmarks/core/browser/bookmark_utils.cc
index 0ad593e92e3e7d515669126adcdb701dcaaf461f..608bed9f2220e619a60beb4d4a464de6ee5f164d 100644
--- a/chrome/browser/bookmarks/bookmark_utils.cc
+++ b/components/bookmarks/core/browser/bookmark_utils.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_utils.h"
+#include "components/bookmarks/core/browser/bookmark_utils.h"
#include <utility>
@@ -15,7 +15,7 @@
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
-#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "components/bookmarks/core/browser/bookmark_model.h"
#include "components/bookmarks/core/common/bookmark_pref_names.h"
#include "components/query_parser/query_parser.h"
#include "components/user_prefs/pref_registry_syncable.h"
@@ -24,7 +24,7 @@
#include "url/gurl.h"
#if !defined(OS_ANDROID)
-#include "chrome/browser/bookmarks/scoped_group_bookmark_actions.h"
+#include "components/bookmarks/core/browser/scoped_group_bookmark_actions.h"
#endif
using base::Time;
@@ -160,7 +160,8 @@ void CloneBookmarkNode(BookmarkModel* model,
return;
}
for (size_t i = 0; i < elements.size(); ++i) {
- CloneBookmarkNodeImpl(model, elements[i], parent, index_to_add_at + i,
+ CloneBookmarkNodeImpl(model, elements[i], parent,
+ index_to_add_at + static_cast<int>(i),
reset_node_times);
}
}
« no previous file with comments | « components/bookmarks/core/browser/bookmark_utils.h ('k') | components/bookmarks/core/browser/scoped_group_bookmark_actions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698