commit | ebe5bdf884be07fd8a5db6fae87ebd16e3f0bc4d | [log] [tgz] |
---|---|---|
author | Peter E Conn <[email protected]> | Mon Mar 05 15:10:53 2018 |
committer | Commit Bot <[email protected]> | Mon Mar 05 15:10:53 2018 |
tree | 917ff34607706f52b6954e392ad6169b5c2d3eec | |
parent | ad2e75c1bc5fee1038c363f97c9870c15a37c933 [diff] |
🤝 Use Origin class for canonically representing origins. Constructing origins manually and storing them in Urls is error-prone (eg the port could be missed out) and there are discrepancies in how the origin could be formed (eg GURLUtils has a trailing '/' while current manually formed origins don't). This is especially important as origins are critical to security. This CL creats an Origin class that offloads all the heavy lifting to the well tested native origin class and allows the type system to prevent the errors listed above. Bug: 800422 Change-Id: I87759ea12a87f2b57bbdf40994d35ec468a43cff Reviewed-on: https://chromium-review.googlesource.com/934289 Commit-Queue: Peter Conn <[email protected]> Reviewed-by: Bernhard Bauer <[email protected]> Cr-Commit-Position: refs/heads/master@{#540825}
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 .