forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the port argument of SecurityOrigin::Create() methods to be ui…
…nt16_t The automatic fallback to a unique origin in SecurityOrigin::Create() is error prone. A unique origin should be created explicitly. In the first place, it never gets such invalid values. To clarify that, change the type of the port argument to uint16_t. In SchemeHostPort, add DCHECKs to clarify that the results of GURL::EffectiveIntPort() can never be outside of the uint16_t range. One of the users of the methods, the CreateFromTupleWithSuborigin() method is no longer used by anyone. So, just remove it. Bug: 788289 Change-Id: Ib0abd718d5553f6b3b06388c4f5c684033202500 Reviewed-on: https://chromium-review.googlesource.com/796172 Commit-Queue: Takeshi Yoshino <tyoshino@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#523742}
- Loading branch information
Showing
6 changed files
with
24 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters