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

Unified Diff: chrome/browser/ui/toolbar/back_forward_menu_model.cc

Issue 13979002: Add support for split PSL list distinctions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added const modifiers Created 7 years, 7 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: chrome/browser/ui/toolbar/back_forward_menu_model.cc
diff --git a/chrome/browser/ui/toolbar/back_forward_menu_model.cc b/chrome/browser/ui/toolbar/back_forward_menu_model.cc
index ff126842c8e1e55aa88023dd2ad69bb42bc84040..ba5e8e4612b38502b923ac263069af6d09fab904 100644
--- a/chrome/browser/ui/toolbar/back_forward_menu_model.cc
+++ b/chrome/browser/ui/toolbar/back_forward_menu_model.cc
@@ -370,8 +370,9 @@ int BackForwardMenuModel::GetIndexOfNextChapterStop(int start_from,
// When going backwards we return the first entry we find that has a
// different domain.
for (int i = start_from - 1; i >= 0; --i) {
- if (!net::RegistryControlledDomainService::SameDomainOrHost(url,
- controller.GetEntryAtIndex(i)->GetURL()))
+ if (!net::registry_controlled_domains::SameDomainOrHost(url,
+ controller.GetEntryAtIndex(i)->GetURL(),
+ net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES))
return i;
}
// We have reached the beginning without finding a chapter stop.
@@ -380,8 +381,9 @@ int BackForwardMenuModel::GetIndexOfNextChapterStop(int start_from,
// When going forwards we return the entry before the entry that has a
// different domain.
for (int i = start_from + 1; i < max_count; ++i) {
- if (!net::RegistryControlledDomainService::SameDomainOrHost(url,
- controller.GetEntryAtIndex(i)->GetURL()))
+ if (!net::registry_controlled_domains::SameDomainOrHost(url,
+ controller.GetEntryAtIndex(i)->GetURL(),
+ net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES))
return i - 1;
}
// Last entry is always considered a chapter stop.

Powered by Google App Engine
This is Rietveld 408576698