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

Unified Diff: components/password_manager/core/browser/password_ui_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: Changes with StringPiece 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/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
new file mode 100644
index 0000000000000000000000000000000000000000..48eb33fdc01e4d27e25c1bc8a9a5b06dc3544b58
--- /dev/null
+++ b/components/password_manager/core/browser/password_ui_utils.h
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file contains utilities related to password manager's UI.
+
+#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_UI_UTILS_H_
+#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_UI_UTILS_H_
+
+#include <string>
+
+#include "url/gurl.h"
+
+namespace password_manager {
+
+// 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);
+
+} // namespace password_manager
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_PASSWORD_UI_UTILS_H_
« no previous file with comments | « components/password_manager/core/browser/BUILD.gn ('k') | components/password_manager/core/browser/password_ui_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698