From 52f421fc26885cd5a8b9ba03fd1cc76a612dd6c1 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 8 Aug 2023 22:29:03 +0200 Subject: [PATCH] chore: update `chrome.runtime.getPlatformInfo` impl (#39392) chore: update chrome.runtime.getPlatformInfo impl --- .../api/runtime/electron_runtime_api_delegate.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shell/browser/extensions/api/runtime/electron_runtime_api_delegate.cc b/shell/browser/extensions/api/runtime/electron_runtime_api_delegate.cc index e43a195b9f86e..976bd56cdb835 100644 --- a/shell/browser/extensions/api/runtime/electron_runtime_api_delegate.cc +++ b/shell/browser/extensions/api/runtime/electron_runtime_api_delegate.cc @@ -37,10 +37,13 @@ void ElectronRuntimeAPIDelegate::ReloadExtension( bool ElectronRuntimeAPIDelegate::CheckForUpdates( const std::string& extension_id, UpdateCheckCallback callback) { + LOG(INFO) << "chrome.runtime.requestUpdateCheck is not supported in Electron"; return false; } -void ElectronRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) {} +void ElectronRuntimeAPIDelegate::OpenURL(const GURL& uninstall_url) { + LOG(INFO) << "chrome.runtime.openURL is not supported in Electron"; +} bool ElectronRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { const char* os = update_client::UpdateQueryParams::GetOS(); @@ -74,9 +77,6 @@ bool ElectronRuntimeAPIDelegate::GetPlatformInfo(PlatformInfo* info) { const char* nacl_arch = update_client::UpdateQueryParams::GetNaclArch(); if (strcmp(nacl_arch, "arm") == 0) { info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kArm; - } else if (strcmp(nacl_arch, "arm64") == 0) { - // Use ARM for ARM64 NaCl, as ARM64 NaCl is not available. - info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kArm; } else if (strcmp(nacl_arch, "x86-32") == 0) { info->nacl_arch = extensions::api::runtime::PlatformNaclArch::kX86_32; } else if (strcmp(nacl_arch, "x86-64") == 0) {