[Encrypt Bookmarks] Clear old encrypted data [chromium/src : main]

0 views
Skip to first unread message

Ari Chivukula (Gerrit)

unread,
9:10 AM (3 hours ago) 9:10 AM
to Mikel Astiz, Pierre-Laurent Coirier, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Mikel Astiz

Ari Chivukula voted and added 3 comments

Votes added by Ari Chivukula

Auto-Submit+1
Commit-Queue+1

3 comments

Commit Message
Line 7, Patchset 3:[Encrypt Bookmarks] Clear Old Encrypted Data
Mikel Astiz . resolved

Nit: `Clear old encrypted data`, no need to capitalize words in a sentence.

Ari Chivukula

Done

File components/bookmarks/browser/model_loader.h
Line 77, Patchset 3: base::OnceCallback<void()> cleanup);
Mikel Astiz . resolved

This API is rather odd, because the caller can pass an arbitrary callback. The responsibilities to delete files correctly is also split between two classes.

I think we do either of:
a) Pass a `std::vector<base::FilePath>` of files that need to be deleted.
b) Don't involve `ModelLoader` at all.

Ari Chivukula

I'll do (1) as we need the background task runner ModelLoader starts.

File components/bookmarks/common/bookmark_constants.h
Line 22, Patchset 3: kOBSOLETE_EncryptedLocalOrSyncableBookmarksFileName[];
Mikel Astiz . resolved

Here and below, please stick to the usual camelcase convention, i.e. `kObsoleteEncryptedLocalOrSyncableBookmarksFileName`.

Ari Chivukula

I want to follow the convention of WebFeatures and highlight that these should not be used without real thought

Open in Gerrit

Related details

Attention is currently required from:
  • Mikel Astiz
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0638f9eaf56486479e9225fdfff31d2214bf5df5
Gerrit-Change-Number: 8057545
Gerrit-PatchSet: 4
Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
Gerrit-Reviewer: Mikel Astiz <mas...@chromium.org>
Gerrit-CC: Pierre-Laurent Coirier <plco...@google.com>
Gerrit-Attention: Mikel Astiz <mas...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 13:09:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Mikel Astiz <mas...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Mikel Astiz (Gerrit)

unread,
9:44 AM (3 hours ago) 9:44 AM
to Ari Chivukula, Pierre-Laurent Coirier, Chromium LUCI CQ, chromium...@chromium.org
Attention needed from Ari Chivukula

Mikel Astiz voted and added 5 comments

Votes added by Mikel Astiz

Code-Review+1

5 comments

Patchset-level comments
File-level comment, Patchset 5 (Latest):
Mikel Astiz . resolved

Thanks!

File components/bookmarks/browser/bookmark_model.cc
Line 18, Patchset 5 (Latest):#include "base/files/file_util.h"
Mikel Astiz . unresolved

Nit: is this used?

Line 318, Patchset 5 (Latest): {
Mikel Astiz . unresolved

Please add: `/*files_to_delete=*/{`

File components/bookmarks/browser/model_loader.h
Line 77, Patchset 5 (Latest): const std::vector<base::FilePath>& files_to_delete);
Mikel Astiz . unresolved

Can you please swap the order and add `callback` last, following usual conventions, as it indicates and completion of the function and everything else is the input the `Load()`.

File components/bookmarks/common/bookmark_constants.cc
Line 17, Patchset 5 (Parent):// TODO(crbug.com/435317726): There was a rollback at one point and the files:
Mikel Astiz . unresolved

I think you could repurpose this comment as a non-TODO comment next to the constants below, so occasional readers understand why these constants exist.

Open in Gerrit

Related details

Attention is currently required from:
  • Ari Chivukula
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I0638f9eaf56486479e9225fdfff31d2214bf5df5
Gerrit-Change-Number: 8057545
Gerrit-PatchSet: 5
Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
Gerrit-Reviewer: Mikel Astiz <mas...@chromium.org>
Gerrit-CC: Pierre-Laurent Coirier <plco...@google.com>
Gerrit-Attention: Ari Chivukula <ari...@chromium.org>
Gerrit-Comment-Date: Wed, 08 Jul 2026 13:44:06 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Ari Chivukula (Gerrit)

unread,
10:18 AM (2 hours ago) 10:18 AM
to Mikel Astiz, Pierre-Laurent Coirier, Chromium LUCI CQ, chromium...@chromium.org

Ari Chivukula voted and added 4 comments

Votes added by Ari Chivukula

Auto-Submit+1
Commit-Queue+2

4 comments

File components/bookmarks/browser/bookmark_model.cc
Line 18, Patchset 5:#include "base/files/file_util.h"
Mikel Astiz . resolved

Nit: is this used?

Ari Chivukula

Done

Line 318, Patchset 5: {
Mikel Astiz . resolved

Please add: `/*files_to_delete=*/{`

Ari Chivukula

Done

File components/bookmarks/browser/model_loader.h
Line 77, Patchset 5: const std::vector<base::FilePath>& files_to_delete);
Mikel Astiz . resolved

Can you please swap the order and add `callback` last, following usual conventions, as it indicates and completion of the function and everything else is the input the `Load()`.

Ari Chivukula

Done

File components/bookmarks/common/bookmark_constants.cc
Line 17, Patchset 5 (Parent):// TODO(crbug.com/435317726): There was a rollback at one point and the files:
Mikel Astiz . resolved

I think you could repurpose this comment as a non-TODO comment next to the constants below, so occasional readers understand why these constants exist.

Ari Chivukula

I moved it to the header

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I0638f9eaf56486479e9225fdfff31d2214bf5df5
    Gerrit-Change-Number: 8057545
    Gerrit-PatchSet: 6
    Gerrit-Owner: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Ari Chivukula <ari...@chromium.org>
    Gerrit-Reviewer: Mikel Astiz <mas...@chromium.org>
    Gerrit-CC: Pierre-Laurent Coirier <plco...@google.com>
    Gerrit-Comment-Date: Wed, 08 Jul 2026 14:18:47 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Mikel Astiz <mas...@chromium.org>
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages