Skip to content

Commit b8e245a

Browse files
Rushan SuleymanovCommit Bot
authored andcommitted
[Sync] Remove UpdateGUIDWithNodeReplacement feature toggle
The feature toggle was enabled by default in M83. Change-Id: I9afb7659990af267540dcd044bafda3dc1c3d8bc Bug: None Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2426426 Reviewed-by: Mikel Astiz <[email protected]> Commit-Queue: Rushan Suleymanov <[email protected]> Cr-Commit-Position: refs/heads/master@{#810104}
1 parent eb97bb4 commit b8e245a

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

components/sync_bookmarks/bookmark_specifics_conversions.cc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,7 @@ void UpdateBookmarkNodeFromSpecifics(
303303
// resolving any conflict in GUID. Either GUIDs are the same, or the GUID in
304304
// specifics is invalid, and hence we can ignore it.
305305
DCHECK(specifics.guid() == node->guid() ||
306-
!base::IsValidGUIDOutputString(specifics.guid()) ||
307-
!base::FeatureList::IsEnabled(
308-
switches::kUpdateBookmarkGUIDWithNodeReplacement));
306+
!base::IsValidGUIDOutputString(specifics.guid()));
309307

310308
if (!node->is_folder()) {
311309
model->SetURL(node, GURL(specifics.url()));
@@ -322,18 +320,14 @@ const bookmarks::BookmarkNode* ReplaceBookmarkNodeGUID(
322320
const bookmarks::BookmarkNode* node,
323321
const std::string& guid,
324322
bookmarks::BookmarkModel* model) {
325-
if (!base::FeatureList::IsEnabled(
326-
switches::kUpdateBookmarkGUIDWithNodeReplacement)) {
327-
return node;
328-
}
329-
const bookmarks::BookmarkNode* new_node;
330323
DCHECK(base::IsValidGUIDOutputString(guid));
331324

332325
if (node->guid() == guid) {
333326
// Nothing to do.
334327
return node;
335328
}
336329

330+
const bookmarks::BookmarkNode* new_node = nullptr;
337331
if (node->is_folder()) {
338332
new_node =
339333
model->AddFolder(node->parent(), node->parent()->GetIndexOf(node),

components/sync_bookmarks/switches.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ namespace switches {
99
const base::Feature kSyncDoNotCommitBookmarksWithoutFavicon = {
1010
"SyncDoNotCommitBookmarksWithoutFavicon", base::FEATURE_ENABLED_BY_DEFAULT};
1111

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-
1612
// Enables the GUID-aware merge algorithm.
1713
const base::Feature kMergeBookmarksUsingGUIDs{"MergeBookmarksUsingGUIDs",
1814
base::FEATURE_ENABLED_BY_DEFAULT};

components/sync_bookmarks/switches.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace switches {
1111

1212
extern const base::Feature kSyncDoNotCommitBookmarksWithoutFavicon;
13-
extern const base::Feature kUpdateBookmarkGUIDWithNodeReplacement;
1413
extern const base::Feature kMergeBookmarksUsingGUIDs;
1514
// TODO(crbug.com/1066962): remove this code when most of bookmarks are
1615
// reuploaded.

0 commit comments

Comments
 (0)