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

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: Added comments to new css classes. Removed left align for rtl locales. 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..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
Evan Stade 2015/10/05 18:59:41 nit: this kind of comment is likely to get out of
kolos1 2015/10/06 18:52:33 Yes, I agree, but there are many ways to get "huma
+// |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