blob: 6df055df9399cecc52341422e0d469a2f1a14f6d [file]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/chrome_extensions_api_client.h"
#include <memory>
#include "base/notimplemented.h"
#include "extensions/buildflags/buildflags.h"
// TODO(crbug.com/417770773): This file contains stubs for the parts of
// ChromeExtensionsAPIClient that are not yet supported on desktop Android. Once
// these functions are supported on desktop Android this file can be deleted.
// The stubs are implemented here instead of falling back to ExtensionsAPIClient
// to allow NOTIMPLEMENTED() logging and a place to put TODOs with bug IDs.
static_assert(BUILDFLAG(ENABLE_DESKTOP_ANDROID_EXTENSIONS));
namespace extensions {
std::unique_ptr<UsbDevicePermissionsPrompt>
ChromeExtensionsAPIClient::CreateUsbDevicePermissionsPrompt(
content::WebContents* web_contents) const {
// TODO(crbug.com/417785993): Support device permissions prompts on desktop
// Android.
return nullptr;
}
} // namespace extensions