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

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

Issue 2042033003: Displaying human-readable Android credentials on Android OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added #include <algorithm> to the files it was missing from. Created 4 years, 6 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/password_ui_utils.h
diff --git a/components/password_manager/core/browser/password_ui_utils.h b/components/password_manager/core/browser/password_ui_utils.h
index e876af2811af29243d2c75dac6b0994422d54d57..1ea79b9a024abeccefc1c7187b685b4d0539ad33 100644
--- a/components/password_manager/core/browser/password_ui_utils.h
+++ b/components/password_manager/core/browser/password_ui_utils.h
@@ -9,6 +9,8 @@
#include <string>
+#include "base/strings/string_piece.h"
+
#include "url/gurl.h"
namespace autofill {
@@ -17,6 +19,11 @@ struct PasswordForm;
namespace password_manager {
+extern const int kAndroidAppSchemeAndDelimiterLength; // Length of 'android://'
+
+// Reverses order of subdomains in hostname.
Bernhard Bauer 2016/06/13 09:34:59 Nit: the individual pieces aren't subdomains (succ
dozsa 2016/06/13 12:36:18 Done.
+std::string SplitByDotAndReverse(base::StringPiece host);
+
// Returns a string suitable for security display to the user (just like
// |FormatUrlForSecurityDisplay| with OMIT_HTTP_AND_HTTPS) based on origin of
// |password_form| and without prefixes "m.", "mobile." or "www.". Also

Powered by Google App Engine
This is Rietveld 408576698