| Index: chrome/browser/history/history_backend.cc
|
| diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
|
| index d752d5b32ad31ae20a411fcc2f649e3c49d967b8..5d141e645bb4504385208fa0724094a51dc2f14e 100644
|
| --- a/chrome/browser/history/history_backend.cc
|
| +++ b/chrome/browser/history/history_backend.cc
|
| @@ -499,8 +499,12 @@ void HistoryBackend::AddPage(const HistoryAddPageArgs& request) {
|
| origin_url.SchemeIs(chrome::kHttpsScheme) ||
|
| origin_url.SchemeIs(chrome::kFtpScheme)) {
|
| std::string host(origin_url.host());
|
| - if ((net::RegistryControlledDomainService::GetRegistryLength(
|
| - host, false) == 0) && !db_->IsTypedHost(host)) {
|
| + size_t registry_length =
|
| + net::registry_controlled_domains::GetRegistryLength(
|
| + host,
|
| + net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
|
| + net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
|
| + if (registry_length == 0 && !db_->IsTypedHost(host)) {
|
| stripped_transition = content::PAGE_TRANSITION_TYPED;
|
| request_transition =
|
| content::PageTransitionFromInt(
|
|
|