File tree Expand file tree Collapse file tree 3 files changed +2
-13
lines changed
components/sync_bookmarks Expand file tree Collapse file tree 3 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -303,9 +303,7 @@ void UpdateBookmarkNodeFromSpecifics(
303
303
// resolving any conflict in GUID. Either GUIDs are the same, or the GUID in
304
304
// specifics is invalid, and hence we can ignore it.
305
305
DCHECK (specifics.guid () == node->guid () ||
306
- !base::IsValidGUIDOutputString (specifics.guid ()) ||
307
- !base::FeatureList::IsEnabled (
308
- switches::kUpdateBookmarkGUIDWithNodeReplacement ));
306
+ !base::IsValidGUIDOutputString (specifics.guid ()));
309
307
310
308
if (!node->is_folder ()) {
311
309
model->SetURL (node, GURL (specifics.url ()));
@@ -322,18 +320,14 @@ const bookmarks::BookmarkNode* ReplaceBookmarkNodeGUID(
322
320
const bookmarks::BookmarkNode* node,
323
321
const std::string& guid,
324
322
bookmarks::BookmarkModel* model) {
325
- if (!base::FeatureList::IsEnabled (
326
- switches::kUpdateBookmarkGUIDWithNodeReplacement )) {
327
- return node;
328
- }
329
- const bookmarks::BookmarkNode* new_node;
330
323
DCHECK (base::IsValidGUIDOutputString (guid));
331
324
332
325
if (node->guid () == guid) {
333
326
// Nothing to do.
334
327
return node;
335
328
}
336
329
330
+ const bookmarks::BookmarkNode* new_node = nullptr ;
337
331
if (node->is_folder ()) {
338
332
new_node =
339
333
model->AddFolder (node->parent (), node->parent ()->GetIndexOf (node),
Original file line number Diff line number Diff line change @@ -9,10 +9,6 @@ namespace switches {
9
9
const base::Feature kSyncDoNotCommitBookmarksWithoutFavicon = {
10
10
" SyncDoNotCommitBookmarksWithoutFavicon" , base::FEATURE_ENABLED_BY_DEFAULT};
11
11
12
- // Enables updating a BookmarkNode's GUID by replacing the node itself.
13
- const base::Feature kUpdateBookmarkGUIDWithNodeReplacement {
14
- " UpdateGUIDWithNodeReplacement" , base::FEATURE_ENABLED_BY_DEFAULT};
15
-
16
12
// Enables the GUID-aware merge algorithm.
17
13
const base::Feature kMergeBookmarksUsingGUIDs {" MergeBookmarksUsingGUIDs" ,
18
14
base::FEATURE_ENABLED_BY_DEFAULT};
Original file line number Diff line number Diff line change 10
10
namespace switches {
11
11
12
12
extern const base::Feature kSyncDoNotCommitBookmarksWithoutFavicon ;
13
- extern const base::Feature kUpdateBookmarkGUIDWithNodeReplacement ;
14
13
extern const base::Feature kMergeBookmarksUsingGUIDs ;
15
14
// TODO(crbug.com/1066962): remove this code when most of bookmarks are
16
15
// reuploaded.
You can’t perform that action at this time.
0 commit comments