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

Unified Diff: chrome/browser/ui/webui/site_settings_helper.cc

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Update new uses post-rebase Created 3 years, 4 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/webui/site_settings_helper.cc
diff --git a/chrome/browser/ui/webui/site_settings_helper.cc b/chrome/browser/ui/webui/site_settings_helper.cc
index 42cbab145c7a41017e86769bb805d491396d292e..fc2c9319ebefd264343c6e7b315b5dcfc8beb1b4 100644
--- a/chrome/browser/ui/webui/site_settings_helper.cc
+++ b/chrome/browser/ui/webui/site_settings_helper.cc
@@ -232,7 +232,7 @@ std::string GetDisplayNameForGURL(
const GURL& url,
const extensions::ExtensionRegistry* extension_registry) {
const url::Origin origin(url);
- if (origin.unique())
+ if (origin.opaque())
return url.spec();
if (extension_registry && origin.scheme() == extensions::kExtensionScheme) {
@@ -255,7 +255,7 @@ std::string GetDisplayNameForPattern(
const extensions::ExtensionRegistry* extension_registry) {
const GURL url(pattern.ToString());
url::Origin origin(url);
- if (!origin.unique())
+ if (!origin.opaque())
return GetDisplayNameForGURL(url, extension_registry);
return pattern.ToString();
}
« no previous file with comments | « chrome/browser/ui/views/passwords/manage_password_items_view.cc ('k') | chrome/renderer/content_settings_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698