| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shell/browser/shell_extensions_browser_client.h" | 5 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 void ShellExtensionsBrowserClient::RegisterMojoServices( | 184 void ShellExtensionsBrowserClient::RegisterMojoServices( |
| 185 content::RenderFrameHost* render_frame_host, | 185 content::RenderFrameHost* render_frame_host, |
| 186 const Extension* extension) const { | 186 const Extension* extension) const { |
| 187 RegisterServicesForFrame(render_frame_host, extension); | 187 RegisterServicesForFrame(render_frame_host, extension); |
| 188 } | 188 } |
| 189 | 189 |
| 190 std::unique_ptr<RuntimeAPIDelegate> | 190 std::unique_ptr<RuntimeAPIDelegate> |
| 191 ShellExtensionsBrowserClient::CreateRuntimeAPIDelegate( | 191 ShellExtensionsBrowserClient::CreateRuntimeAPIDelegate( |
| 192 content::BrowserContext* context) const { | 192 content::BrowserContext* context) const { |
| 193 return base::WrapUnique(new ShellRuntimeAPIDelegate()); | 193 return base::MakeUnique<ShellRuntimeAPIDelegate>(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 const ComponentExtensionResourceManager* | 196 const ComponentExtensionResourceManager* |
| 197 ShellExtensionsBrowserClient::GetComponentExtensionResourceManager() { | 197 ShellExtensionsBrowserClient::GetComponentExtensionResourceManager() { |
| 198 return NULL; | 198 return NULL; |
| 199 } | 199 } |
| 200 | 200 |
| 201 void ShellExtensionsBrowserClient::BroadcastEventToRenderers( | 201 void ShellExtensionsBrowserClient::BroadcastEventToRenderers( |
| 202 events::HistogramValue histogram_value, | 202 events::HistogramValue histogram_value, |
| 203 const std::string& event_name, | 203 const std::string& event_name, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 api_client_.reset(api_client); | 238 api_client_.reset(api_client); |
| 239 } | 239 } |
| 240 | 240 |
| 241 ExtensionWebContentsObserver* | 241 ExtensionWebContentsObserver* |
| 242 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( | 242 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( |
| 243 content::WebContents* web_contents) { | 243 content::WebContents* web_contents) { |
| 244 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); | 244 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); |
| 245 } | 245 } |
| 246 | 246 |
| 247 } // namespace extensions | 247 } // namespace extensions |
| OLD | NEW |