| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "extensions/browser/extensions_browser_client.h" | 5 #include "extensions/browser/extensions_browser_client.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/update_client/update_client.h" | 8 #include "components/update_client/update_client.h" |
| 9 #include "extensions/browser/extension_api_frame_id_map.h" | 9 #include "extensions/browser/extension_api_frame_id_map.h" |
| 10 #include "extensions/browser/extension_error.h" | 10 #include "extensions/browser/extension_error.h" |
| 11 #include "extensions/browser/ui/extension_chooser_dialog.h" |
| 11 #include "extensions/browser/updater/update_client_config.h" | 12 #include "extensions/browser/updater/update_client_config.h" |
| 12 | 13 |
| 13 namespace extensions { | 14 namespace extensions { |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 ExtensionsBrowserClient* g_client = NULL; | 18 ExtensionsBrowserClient* g_client = NULL; |
| 18 | 19 |
| 19 } // namespace | 20 } // namespace |
| 20 | 21 |
| 21 scoped_refptr<update_client::UpdateClient> | 22 scoped_refptr<update_client::UpdateClient> |
| 22 ExtensionsBrowserClient::CreateUpdateClient(content::BrowserContext* context) { | 23 ExtensionsBrowserClient::CreateUpdateClient(content::BrowserContext* context) { |
| 23 return scoped_refptr<update_client::UpdateClient>(nullptr); | 24 return scoped_refptr<update_client::UpdateClient>(nullptr); |
| 24 } | 25 } |
| 25 | 26 |
| 26 std::unique_ptr<ExtensionApiFrameIdMapHelper> | 27 std::unique_ptr<ExtensionApiFrameIdMapHelper> |
| 27 ExtensionsBrowserClient::CreateExtensionApiFrameIdMapHelper( | 28 ExtensionsBrowserClient::CreateExtensionApiFrameIdMapHelper( |
| 28 ExtensionApiFrameIdMap* map) { | 29 ExtensionApiFrameIdMap* map) { |
| 29 return nullptr; | 30 return nullptr; |
| 30 } | 31 } |
| 31 | 32 |
| 33 std::unique_ptr<ExtensionChooserDialog> |
| 34 ExtensionsBrowserClient::CreateBluetoothChromeExtensionChooserDialog( |
| 35 content::WebContents* web_contents) { |
| 36 return nullptr; |
| 37 } |
| 38 |
| 32 void ExtensionsBrowserClient::ReportError( | 39 void ExtensionsBrowserClient::ReportError( |
| 33 content::BrowserContext* context, | 40 content::BrowserContext* context, |
| 34 std::unique_ptr<ExtensionError> error) { | 41 std::unique_ptr<ExtensionError> error) { |
| 35 LOG(ERROR) << error->GetDebugString(); | 42 LOG(ERROR) << error->GetDebugString(); |
| 36 } | 43 } |
| 37 | 44 |
| 38 ExtensionsBrowserClient* ExtensionsBrowserClient::Get() { | 45 ExtensionsBrowserClient* ExtensionsBrowserClient::Get() { |
| 39 return g_client; | 46 return g_client; |
| 40 } | 47 } |
| 41 | 48 |
| 42 void ExtensionsBrowserClient::Set(ExtensionsBrowserClient* client) { | 49 void ExtensionsBrowserClient::Set(ExtensionsBrowserClient* client) { |
| 43 g_client = client; | 50 g_client = client; |
| 44 } | 51 } |
| 45 | 52 |
| 46 } // namespace extensions | 53 } // namespace extensions |
| OLD | NEW |