| 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_
|
|
|