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

Unified Diff: components/password_manager/core/browser/affiliation_utils.h

Issue 1318523011: [Password Manager] Copiable username and origin. Linkable origin elided from the left. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copiable username and origin in css. Linkable origin elided from the left. Created 5 years, 3 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/password_manager/core/browser/affiliation_utils.h
diff --git a/components/password_manager/core/browser/affiliation_utils.h b/components/password_manager/core/browser/affiliation_utils.h
index a8f13be7fb40b0f000d63ad3e5768b8a39b32c2b..3dea7d7d95c3e9192b896a418290aadc05a24ab2 100644
--- a/components/password_manager/core/browser/affiliation_utils.h
+++ b/components/password_manager/core/browser/affiliation_utils.h
@@ -206,6 +206,10 @@ bool IsAffiliationRequestsForDummyFacetsEnabled(
std::string GetHumanReadableOrigin(const autofill::PasswordForm& password_form,
const std::string& languages);
+// Remove prefixes "m.", "mobile." or "www." from the result of
+// |FormatUrlForSecurityDisplayOmitScheme| based on |url| and |languages|.
+std::string GetShownOrigin(const GURL& url, const std::string& languages);
+
// For logging use only.
std::ostream& operator<<(std::ostream& os, const FacetURI& facet_uri);

Powered by Google App Engine
This is Rietveld 408576698