Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Unified Diff: components/history/core/browser/history_backend.cc

Issue 2433583002: Reduce buggy usage of the registry controlled domain service. (Closed)
Patch Set: . Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/history/core/browser/history_backend.cc
diff --git a/components/history/core/browser/history_backend.cc b/components/history/core/browser/history_backend.cc
index 410f2588dfef829ba84db98331eae5dc0601d450..03711d1532b844eccff065096f0f8ce2d731f8c6 100644
--- a/components/history/core/browser/history_backend.cc
+++ b/components/history/core/browser/history_backend.cc
@@ -494,7 +494,7 @@ void HistoryBackend::AddPage(const HistoryAddPageArgs& request) {
origin_url.SchemeIs(url::kFtpScheme)) {
std::string host(origin_url.host());
size_t registry_length =
- net::registry_controlled_domains::GetRegistryLength(
+ net::registry_controlled_domains::GetRegistryLengthForCanonicalHost(
host,
net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);

Powered by Google App Engine
This is Rietveld 408576698