[cleanup] Use keywords:: constants instead of string literals in renderer/core [chromium/src : main]

0 views
Skip to first unread message

Zhou, Shuangshuang (Gerrit)

unread,
Apr 27, 2026, 3:31:04 AMApr 27
to srirama chandra sekhar, Mason Freed, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org
Attention needed from Mason Freed

Zhou, Shuangshuang added 3 comments

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Zhou, Shuangshuang . resolved

Hi Mason&Joey,in the current patch, I only addressed the cases in `renderer/core` to minimize the risk of bugs and ensure we don’t introduce any side effects before extending to other scopes in `blink/`. PTAL!
Then we can

Commit Message
Line 11, Patchset 2:AtomicString comparison intead of character-by-character comparison.
Mason Freed . resolved

Please fix this WARNING reported by Spellchecker: "intead" is a possible misspelling of "instead".

To bypass Spellchecker, add a ...

"intead" is a possible misspelling of "instead".

To bypass Spellchecker, add a footer with DISABLE_SPELLCHECKER

Zhou, Shuangshuang

Done

File third_party/blink/renderer/core/clipboard/data_transfer.cc
Line 182, Patchset 2: if (op == "copy")
return kDragOperationCopy;
if (op == "link")
return kDragOperationLink;
if (op == "move")
return kDragOperationMove;
if (op == "copyLink") {
return static_cast<DragOperationsMask>(kDragOperationCopy |
kDragOperationLink);
}
if (op == "copyMove") {
return static_cast<DragOperationsMask>(kDragOperationCopy |
kDragOperationMove);
}
if (op == "linkMove") {
return static_cast<DragOperationsMask>(kDragOperationLink |
kDragOperationMove);
}
if (op == "all")
return kDragOperationEvery;
return std::nullopt;
Mason Freed . resolved

Perhaps while you're here, you could move all of the other values to keywords?

Zhou, Shuangshuang

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Mason Freed
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: Ibebcc90438644e571dd25869dc4599785714a102
Gerrit-Change-Number: 7792758
Gerrit-PatchSet: 4
Gerrit-Owner: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Comment-Date: Mon, 27 Apr 2026 07:30:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Mason Freed (Gerrit)

unread,
Apr 27, 2026, 5:30:28 PMApr 27
to Zhou, Shuangshuang, srirama chandra sekhar, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org
Attention needed from Zhou, Shuangshuang

Mason Freed voted and added 1 comment

Votes added by Mason Freed

Code-Review+1

1 comment

Patchset-level comments
Mason Freed . resolved

Nice cleanup! Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Zhou, Shuangshuang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ibebcc90438644e571dd25869dc4599785714a102
Gerrit-Change-Number: 7792758
Gerrit-PatchSet: 4
Gerrit-Owner: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-Comment-Date: Mon, 27 Apr 2026 21:30:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Zhou, Shuangshuang (Gerrit)

unread,
Apr 29, 2026, 7:02:43 PM (13 days ago) Apr 29
to Mason Freed, srirama chandra sekhar, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org

Zhou, Shuangshuang added 1 comment

Patchset-level comments
Zhou, Shuangshuang . resolved

friendly ping! Thanks!

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ibebcc90438644e571dd25869dc4599785714a102
Gerrit-Change-Number: 7792758
Gerrit-PatchSet: 4
Gerrit-Owner: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Comment-Date: Wed, 29 Apr 2026 23:02:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Zhou, Shuangshuang (Gerrit)

unread,
May 5, 2026, 8:59:44 AM (7 days ago) May 5
to Xiaocheng Hu, Mason Freed, srirama chandra sekhar, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org
Attention needed from Xiaocheng Hu

Zhou, Shuangshuang added 1 comment

Patchset-level comments
Zhou, Shuangshuang . resolved

Friendly ping, thanks!

Hi Philip, also add you in reviewers, PTAL when you have time. This is a clean-up patch. Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Xiaocheng Hu
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ibebcc90438644e571dd25869dc4599785714a102
Gerrit-Change-Number: 7792758
Gerrit-PatchSet: 4
Gerrit-Owner: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Reviewer: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Xiaocheng Hu <xiaoc...@chromium.org>
Gerrit-Comment-Date: Tue, 05 May 2026 12:59:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Zhou, Shuangshuang (Gerrit)

unread,
May 5, 2026, 10:42:58 PM (7 days ago) May 5
to Philip Rogers, Mason Freed, srirama chandra sekhar, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org
Attention needed from Philip Rogers

Zhou, Shuangshuang added 1 comment

Patchset-level comments
Zhou, Shuangshuang . resolved

Hi Philip, also add you in reviewers, PTAL when you have time. This is a clean-up patch. Thanks!

Open in Gerrit

Related details

Attention is currently required from:
  • Philip Rogers
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement 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: Ibebcc90438644e571dd25869dc4599785714a102
Gerrit-Change-Number: 7792758
Gerrit-PatchSet: 4
Gerrit-Owner: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
Gerrit-Reviewer: Zhou, Shuangshuang <shuangsh...@intel.com>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Philip Rogers <p...@chromium.org>
Gerrit-Comment-Date: Wed, 06 May 2026 02:42:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Zhou, Shuangshuang (Gerrit)

unread,
May 10, 2026, 8:55:45 PM (2 days ago) May 10
to Philip Rogers, Mason Freed, srirama chandra sekhar, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org
Attention needed from Philip Rogers

Zhou, Shuangshuang added 1 comment

Patchset-level comments
Zhou, Shuangshuang . resolved

friendly ping! Thanks! Hey Philip and Joey, would you like to take a look on this?

Gerrit-Comment-Date: Mon, 11 May 2026 00:55:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Philip Rogers (Gerrit)

unread,
May 11, 2026, 2:54:53 PM (23 hours ago) May 11
to Zhou, Shuangshuang, Mason Freed, srirama chandra sekhar, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org
Attention needed from Zhou, Shuangshuang

Philip Rogers voted and added 2 comments

Votes added by Philip Rogers

Code-Review+1

2 comments

Patchset-level comments
Philip Rogers . resolved

LGTM

File third_party/blink/renderer/core/clipboard/data_transfer.cc
Line 31, Patchset 4 (Latest):#include "build/build_config.h"
Philip Rogers . unresolved

Do you need to include keywords.h?

Open in Gerrit

Related details

Attention is currently required from:
  • Zhou, Shuangshuang
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: Ibebcc90438644e571dd25869dc4599785714a102
    Gerrit-Change-Number: 7792758
    Gerrit-PatchSet: 4
    Gerrit-Owner: Zhou, Shuangshuang <shuangsh...@intel.com>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
    Gerrit-Reviewer: Zhou, Shuangshuang <shuangsh...@intel.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Zhou, Shuangshuang <shuangsh...@intel.com>
    Gerrit-Comment-Date: Mon, 11 May 2026 18:54:43 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Zhou, Shuangshuang (Gerrit)

    unread,
    6:09 AM (8 hours ago) 6:09 AM
    to Philip Rogers, Mason Freed, srirama chandra sekhar, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org
    Attention needed from Mason Freed and Philip Rogers

    Zhou, Shuangshuang added 2 comments

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Zhou, Shuangshuang . resolved

    Hi Philip&Mason&Jeoy, thanks for the comments, PTAL!

    File third_party/blink/renderer/core/clipboard/data_transfer.cc
    Line 31, Patchset 4:#include "build/build_config.h"
    Philip Rogers . resolved

    Do you need to include keywords.h?

    Zhou, Shuangshuang

    Good catch! Thanks for the reminder!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mason Freed
    • Philip Rogers
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: Ibebcc90438644e571dd25869dc4599785714a102
      Gerrit-Change-Number: 7792758
      Gerrit-PatchSet: 5
      Gerrit-Owner: Zhou, Shuangshuang <shuangsh...@intel.com>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-Reviewer: Zhou, Shuangshuang <shuangsh...@intel.com>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Attention: Philip Rogers <p...@chromium.org>
      Gerrit-Comment-Date: Tue, 12 May 2026 10:09:34 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Philip Rogers <p...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Philip Rogers (Gerrit)

      unread,
      10:57 AM (3 hours ago) 10:57 AM
      to Zhou, Shuangshuang, Mason Freed, srirama chandra sekhar, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, blink-rev...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org, blink-...@chromium.org, dcheng+c...@chromium.org
      Attention needed from Mason Freed and Zhou, Shuangshuang

      Philip Rogers voted and added 1 comment

      Votes added by Philip Rogers

      Code-Review+1

      1 comment

      Patchset-level comments
      Philip Rogers . resolved

      LGTM

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Mason Freed
      • Zhou, Shuangshuang
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement 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: Ibebcc90438644e571dd25869dc4599785714a102
      Gerrit-Change-Number: 7792758
      Gerrit-PatchSet: 5
      Gerrit-Owner: Zhou, Shuangshuang <shuangsh...@intel.com>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-Reviewer: Zhou, Shuangshuang <shuangsh...@intel.com>
      Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
      Gerrit-Attention: Zhou, Shuangshuang <shuangsh...@intel.com>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Comment-Date: Tue, 12 May 2026 14:57:16 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages