commit | 4844e46e3da42c8cf833664dca51eed4301e503b | [log] [tgz] |
---|---|---|
author | Peter Kasting <[email protected]> | Fri Feb 23 07:27:10 2018 |
committer | Commit Bot <[email protected]> | Fri Feb 23 07:27:10 2018 |
tree | 979a3e1b079adb025363d61eaa81a13a9792f810 | |
parent | ff6ff85a93111903f5bf1b238c0428665f98ae55 [diff] |
Fix unique_ptr<>() PRESUBMIT. Three directories had a PRESUBMIT designed to catch "std::unique_ptr<T>()" and require nullptr instead. In two directories, the match was overbroad, catching things like "std::vector<std::unique_ptr<T>>()". In ui/, ricea attempted a fix (in https://codereview.chromium.org/2311783002 ) that made the regex too conservative, failing to catch std::unique_ptr<Foo<T>>(). Instead, fail to match std::unique_ptr<T>() if it's immediately preceded by '<'. This moves the check to the global PRESUBMIT to avoid duplication. BUG=none TEST=none TBR=sky Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel Change-Id: Ia8888408683b2de3bbe60e0e43409d72475ea169 Reviewed-on: https://chromium-review.googlesource.com/933547 Reviewed-by: Peter Kasting <[email protected]> Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Peter Kasting <[email protected]> Cr-Commit-Position: refs/heads/master@{#538723}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .