| Index: chrome/browser/history/history_backend.cc
|
| diff --git a/chrome/browser/history/history_backend.cc b/chrome/browser/history/history_backend.cc
|
| index 9fc210ee432cc2444ab5aae1178e2d26281f6b18..7924cad8964ea292fcb4613c281e897245baba62 100644
|
| --- a/chrome/browser/history/history_backend.cc
|
| +++ b/chrome/browser/history/history_backend.cc
|
| @@ -500,8 +500,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(
|
|
|