Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: extensions/shell/browser/shell_extensions_browser_client.cc

Issue 2252373002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_extension_system.cc ('k') | extensions/shell/browser/shell_native_app_window_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698