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

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: Icons appearance fixed Created 5 years, 2 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..f20aadad03063f46f97c78251ae9f659ceab76a8 100644
--- a/components/password_manager/core/browser/affiliation_utils.h
+++ b/components/password_manager/core/browser/affiliation_utils.h
@@ -206,6 +206,11 @@ bool IsAffiliationRequestsForDummyFacetsEnabled(
std::string GetHumanReadableOrigin(const autofill::PasswordForm& password_form,
const std::string& languages);
+// Returns a string suitable for security display to the user (just like
+// |FormatUrlForSecurityDisplayOmitScheme| based on |url| and |languages|) and
+// without prefixes "m.", "mobile." or "www.".
+std::string GetShownOrigin(const GURL& url, const std::string& languages);
vabr (Chromium) 2015/10/15 11:58:26 I don't think this has anything to do with affilia
+
// For logging use only.
std::ostream& operator<<(std::ostream& os, const FacetURI& facet_uri);

Powered by Google App Engine
This is Rietveld 408576698