Commit 9a59e46e authored by Daniel Cheng's avatar Daniel Cheng Committed by Commit Bot

Use base::FastHash() in //android_webview

Bug: 1025358
Change-Id: Iadef27f215c7a4dccd307ad32f4fbe5649403fb7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1919821
Auto-Submit: Daniel Cheng <dcheng@chromium.org>
Commit-Queue: Bo <boliu@chromium.org>
Reviewed-by: default avatarBo <boliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#716348}
parent aee9676a
......@@ -106,12 +106,12 @@ void IconHelper::DidStartNavigationToPendingEntry(
}
void IconHelper::MarkUnableToDownloadFavicon(const GURL& icon_url) {
MissingFaviconURLHash url_hash = base::Hash(icon_url.spec());
MissingFaviconURLHash url_hash = base::FastHash(icon_url.spec());
missing_favicon_urls_.insert(url_hash);
}
bool IconHelper::WasUnableToDownloadFavicon(const GURL& icon_url) const {
MissingFaviconURLHash url_hash = base::Hash(icon_url.spec());
MissingFaviconURLHash url_hash = base::FastHash(icon_url.spec());
return missing_favicon_urls_.find(url_hash) != missing_favicon_urls_.end();
}
......
......@@ -67,7 +67,7 @@ class IconHelper : public content::WebContentsObserver {
Listener* listener_;
typedef uint32_t MissingFaviconURLHash;
using MissingFaviconURLHash = size_t;
std::unordered_set<MissingFaviconURLHash> missing_favicon_urls_;
DISALLOW_COPY_AND_ASSIGN(IconHelper);
......
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