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

Side by Side Diff: extensions/shell/browser/shell_extension_system.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_extension_system.h" 5 #include "extensions/shell/browser/shell_extension_system.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 const OneShotEvent& ShellExtensionSystem::ready() const { 176 const OneShotEvent& ShellExtensionSystem::ready() const {
177 return ready_; 177 return ready_;
178 } 178 }
179 179
180 ContentVerifier* ShellExtensionSystem::content_verifier() { 180 ContentVerifier* ShellExtensionSystem::content_verifier() {
181 return nullptr; 181 return nullptr;
182 } 182 }
183 183
184 std::unique_ptr<ExtensionSet> ShellExtensionSystem::GetDependentExtensions( 184 std::unique_ptr<ExtensionSet> ShellExtensionSystem::GetDependentExtensions(
185 const Extension* extension) { 185 const Extension* extension) {
186 return base::WrapUnique(new ExtensionSet()); 186 return base::MakeUnique<ExtensionSet>();
187 } 187 }
188 188
189 void ShellExtensionSystem::InstallUpdate(const std::string& extension_id, 189 void ShellExtensionSystem::InstallUpdate(const std::string& extension_id,
190 const base::FilePath& temp_dir) { 190 const base::FilePath& temp_dir) {
191 NOTREACHED(); 191 NOTREACHED();
192 base::DeleteFile(temp_dir, true /* recursive */); 192 base::DeleteFile(temp_dir, true /* recursive */);
193 } 193 }
194 194
195 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts( 195 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts(
196 scoped_refptr<Extension> extension) { 196 scoped_refptr<Extension> extension) {
197 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_); 197 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_);
198 registry->AddReady(extension); 198 registry->AddReady(extension);
199 registry->TriggerOnReady(extension.get()); 199 registry->TriggerOnReady(extension.get());
200 } 200 }
201 201
202 } // namespace extensions 202 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_desktop_controller_aura.cc ('k') | extensions/shell/browser/shell_extensions_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698