Movatterモバイル変換


[0]ホーム

URL:


Google Git
Sign in
chromium /chromium /src /refs/heads/main /. /google_apis /google_api_keys_mac.mm
blob: c843b55cb2a29d48211288598b15b23f51c1ca2e [file] [log] [blame] [edit]
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "google_api_keys_mac.h"
#import <Foundation/Foundation.h>
#include"base/apple/bundle_locations.h"
#include"base/apple/foundation_util.h"
#include"base/strings/sys_string_conversions.h"
namespace google_apis{
std::stringGetAPIKeyFromInfoPlist(std::string_view key_name){
NSString* keyName=base::SysUTF8ToNSString(key_name);
NSString* keyValue=base::apple::ObjCCast<NSString>(
[base::apple::FrameworkBundle() objectForInfoDictionaryKey:keyName]);
returnbase::SysNSStringToUTF8(keyValue);
}
}// namespace google_apis

[8]ページ先頭

©2009-2025 Movatter.jp