blob: b5ce1c25acfa65eb6fc6c4d4cbe0e034d28d89eb [file] [log] [blame]
Timofey Chudakovdffeeec72024-08-30 15:57:281// Copyright 2024 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef COMPONENTS_PLUS_ADDRESSES_PLUS_ADDRESS_UI_UTILS_H_
6#define COMPONENTS_PLUS_ADDRESSES_PLUS_ADDRESS_UI_UTILS_H_
7
8#include <string>
9
10#include "components/plus_addresses/plus_address_types.h"
11
12namespace plus_addresses {
13
14// Returns a string for UI display computed from the `plus_address` facet URI.
15// For Android origins, the package name is returned. For web origins, the
16// formatted URL without the cryptographic scheme is returned.
Jan Keitelc643cb82024-09-10 14:43:3317std::u16string GetOriginForDisplay(const PlusProfile& plus_address);
Timofey Chudakovdffeeec72024-08-30 15:57:2818
19} // namespace plus_addresses
20
21#endif // COMPONENTS_PLUS_ADDRESSES_PLUS_ADDRESS_UI_UTILS_H_