0
Commit Graph

5 Commits

Author SHA1 Message Date
Takuto Ikuta
22a539b233 ash,chrome,content: remove USE_PYTHON3 = True
presubmit now uses python3 only.

Bug: 1207012
Change-Id: Idcbbccd59cb69442e06b3058084c237db5208204
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4568251
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Owners-Override: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1151282}
2023-05-31 16:12:33 +00:00
Avi Drissman
4e1b7bc33d Update copyright headers in content/
The methodology used to generate this CL is documented in
https://crbug.com/1098010#c34.

No-Try: true
No-Presubmit: true
Bug: 1098010
Change-Id: I8c0f009d16350271f07d8e5e561085822cc9dd27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3895935
Owners-Override: Avi Drissman <avi@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Mark Mentovai <mark@chromium.org>
Auto-Submit: Avi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047456}
2022-09-15 14:03:50 +00:00
Elaine Chien
acefa101b7 Python3Migration: content/browser/PRESUBMIT
Bug: 1212023
Change-Id: Iec10b23d36d7df688ae619896259f720d601ebda
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2964634
Commit-Queue: Alex Moshchuk <alexmos@chromium.org>
Auto-Submit: Elaine Chien <elainechien@chromium.org>
Reviewed-by: Alex Moshchuk <alexmos@chromium.org>
Cr-Commit-Position: refs/heads/master@{#892794}
2021-06-16 00:16:12 +00:00
lukasza
14d9a1a8ca Fix presubmit_scheme_histograms.py and presubmit_bad_message_reasons.py
This CL fixes presubmit_scheme_histograms.py and
presubmit_bad_message_reasons.py which after r462591 would always report
presubmit errors (because it started returning a tuple from HistogramNeedsUpdate
which always coerces to True in the broken presubmit scripts).

After r462591 HistogramNeedsUpdate effectively checks all
histogram-enum-related presubmits (both for updating histograms.xml and
for detecting duplicate values).  Therefore the current CL renames this
function to CheckPresubmitErrors and makes it return a presubmit error
(rather than a tuple of (needs_updating, duplicates)).  This refactoring
has a nice side benefit - after this CL, all presubmits going through
CheckPresubmitErrors will check for duplicate values (r462591 only added
this check for UseCounter histograms).

This CL also tweaks content/browser/PRESUBMIT.py so that it applies
*both* to upload-time and commit-time checks (without this change
|git cl presubmit| would not hit the checks related to
content/browser/bad_message.h - they would only be hit when running
|git cl presubmit --upload|).

Manual testing done:
- Make changes in content/browser/bad_message.h,
  chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc,
  third_party/WebKit/Source/code/frame
- Run git cl presubmit and verify that the presubmit
  checks detect 1) duplicates and 2) the need to update histograms.xml

BUG=577772
TEST=See "Manual testing done" above.
TBR=sky@chromium.org, jochen@chromium.org, rdevlin.cronin@chromium.org

Review-Url: https://codereview.chromium.org/2841823007
Cr-Commit-Position: refs/heads/master@{#468003}
2017-04-28 15:23:57 +00:00
dougt
b53dc5998d Add presubmit scripts to check histograms.xml if bad_message.h changes.
BUG=None
R=dgozman

Review-Url: https://codereview.chromium.org/2653273003
Cr-Commit-Position: refs/heads/master@{#447531}
2017-02-01 16:25:00 +00:00