// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "extensions/browser/extensions_browser_client.h" #include "base/logging.h" #include "components/update_client/update_client.h" #include "extensions/browser/extension_api_frame_id_map.h" #include "extensions/browser/extension_error.h" namespace extensions { namespace { ExtensionsBrowserClient* g_extension_browser_client = NULL; } // namespace scoped_refptr ExtensionsBrowserClient::CreateUpdateClient(content::BrowserContext* context) { return scoped_refptr(nullptr); } std::unique_ptr ExtensionsBrowserClient::CreateExtensionApiFrameIdMapHelper( ExtensionApiFrameIdMap* map) { return nullptr; } std::unique_ptr ExtensionsBrowserClient::CreateBluetoothChooser( content::RenderFrameHost* frame, const content::BluetoothChooser::EventHandler& event_handler) { return nullptr; } void ExtensionsBrowserClient::ReportError( content::BrowserContext* context, std::unique_ptr error) { LOG(ERROR) << error->GetDebugString(); } bool ExtensionsBrowserClient::IsActivityLoggingEnabled( content::BrowserContext* context) { return false; } ExtensionNavigationUIData* ExtensionsBrowserClient::GetExtensionNavigationUIData( net::URLRequest* request) { return nullptr; } void ExtensionsBrowserClient::GetTabAndWindowIdForWebContents( content::WebContents* web_contents, int* tab_id, int* window_id) { *tab_id = -1; *window_id = -1; } bool ExtensionsBrowserClient::IsExtensionEnabled( const std::string& extension_id, content::BrowserContext* context) const { return false; } ExtensionsBrowserClient* ExtensionsBrowserClient::Get() { return g_extension_browser_client; } void ExtensionsBrowserClient::Set(ExtensionsBrowserClient* client) { g_extension_browser_client = client; } } // namespace extensions