Commit 463b0432 authored by Victor Costan's avatar Victor Costan Committed by Commit Bot

Quota: Remove net::GetHostOrSpecFromURL() from chrome://quota-internals.

The quota system has extracted the host from an url::Origin using two
approaches:
1) Call url::Origin::host() directly.
2) Pass url::Origin::GetURL() into net::GetHostOrSpecFromURL().

We have converged on the first approach. This CL removes the last
instance of net::GetHostOrSpecFromURL().

Bug: 496482
Change-Id: I428928de86b18c7f0a2147870a97cebcf8c463ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2298188
Commit-Queue: Joshua Bell <jsbell@chromium.org>
Auto-Submit: Victor Costan <pwnall@chromium.org>
Reviewed-by: default avatarJoshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#788687}
parent 3b88e5b9
......@@ -73,7 +73,7 @@ PerOriginStorageInfo::PerOriginStorageInfo(const GURL& origin,
blink::mojom::StorageType type)
: origin_(origin),
type_(type),
host_(net::GetHostOrSpecFromURL(origin)),
host_(origin.host()),
in_use_(-1),
used_count_(-1) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment