| 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_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 Loading... |
| 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 |
| OLD | NEW |