-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4554 from brave/check_to_dcheck_on_sync_bkm
Convert some CHECKs to DCHECK for synced_bookmark_tracker and bookmar…
- Loading branch information
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
patches/components-sync_bookmarks-synced_bookmark_tracker.cc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/components/sync_bookmarks/synced_bookmark_tracker.cc b/components/sync_bookmarks/synced_bookmark_tracker.cc | ||
index 5acee2729ad296a9c4a7cbafc2b4bbede0141bc5..324cc5ea8d4470feefa44288d1984dfc9722f1ba 100644 | ||
--- a/components/sync_bookmarks/synced_bookmark_tracker.cc | ||
+++ b/components/sync_bookmarks/synced_bookmark_tracker.cc | ||
@@ -497,7 +497,7 @@ void SyncedBookmarkTracker::UpdateSyncForLocalCreationIfNeeded( | ||
// TODO(crbug.com/516866): The below CHECK is added to debug some crashes. | ||
// Should be removed after figuring out the reason for the crash. | ||
CHECK_EQ(1U, sync_id_to_entities_map_.count(old_id)); | ||
- CHECK_EQ(0U, sync_id_to_entities_map_.count(new_id)); | ||
+ // CHECK_EQ(0U, sync_id_to_entities_map_.count(new_id)); | ||
|
||
std::unique_ptr<Entity> entity = | ||
std::move(sync_id_to_entities_map_.at(old_id)); |