Files
Claudio DeSouza 551870e6b1 [cr135] FilePath::StringPieceType renamed
This alias has been renamed to better reflect the use of `string_view`.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/534a26b46b5d5315def1d0760b52191710e1b368

commit 534a26b46b5d5315def1d0760b52191710e1b368
Author: Lei Zhang <thestig@chromium.org>
Date:   Thu Jan 30 17:35:09 2025 -0800

    Add base::FilePath::StringViewType

    Add a replacement alias for StringPieceType, now that base::StringPiece
    is gone. Use this replacement in base::FilePath and its unit tests.
    Modernize modified files to use `using` instead of `typedef` as well.

    Change-Id: Ib87150f54b6b7de3696a57b14bd12d92a82239ef
2025-03-18 20:02:01 -04:00

34 lines
1.2 KiB
C

// Copyright (c) 2024 The Brave Authors. All rights reserved.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
#ifndef BRAVE_COMPONENTS_IPFS_IPFS_COMMON_H_
#define BRAVE_COMPONENTS_IPFS_IPFS_COMMON_H_
#include "base/files/file_path.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
static const base::FilePath::StringViewType kIpfsClientComponentId =
FILE_PATH_LITERAL("lnbclahgobmjphilkalbhebakmblnbij");
#elif BUILDFLAG(IS_MAC)
#if defined(ARCH_CPU_ARM64)
static const base::FilePath::StringViewType kIpfsClientComponentId =
FILE_PATH_LITERAL("lejaflgbgglfaomemffoaappaihfligf");
#else
static const base::FilePath::StringViewType kIpfsClientComponentId =
FILE_PATH_LITERAL("nljcddpbnaianmglkpkneakjaapinabi");
#endif
#elif BUILDFLAG(IS_LINUX)
#if defined(ARCH_CPU_ARM64)
static const base::FilePath::StringViewType kIpfsClientComponentId =
FILE_PATH_LITERAL("fmmldihckdnognaabhligdpckkeancng");
#else
static const base::FilePath::StringViewType kIpfsClientComponentId =
FILE_PATH_LITERAL("oecghfpdmkjlhnfpmmjegjacfimiafjp");
#endif
#endif
#endif // BRAVE_COMPONENTS_IPFS_IPFS_COMMON_H_