| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 ContentVerifier* ShellExtensionSystem::content_verifier() { | 170 ContentVerifier* ShellExtensionSystem::content_verifier() { |
| 171 return nullptr; | 171 return nullptr; |
| 172 } | 172 } |
| 173 | 173 |
| 174 scoped_ptr<ExtensionSet> ShellExtensionSystem::GetDependentExtensions( | 174 scoped_ptr<ExtensionSet> ShellExtensionSystem::GetDependentExtensions( |
| 175 const Extension* extension) { | 175 const Extension* extension) { |
| 176 return make_scoped_ptr(new ExtensionSet()); | 176 return make_scoped_ptr(new ExtensionSet()); |
| 177 } | 177 } |
| 178 | 178 |
| 179 void ShellExtensionSystem::InstallUpdate(const std::string& extension_id, |
| 180 const base::FilePath& temp_dir) { |
| 181 NOTREACHED(); |
| 182 base::DeleteFile(temp_dir, true /* recursive */); |
| 183 } |
| 184 |
| 179 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts( | 185 void ShellExtensionSystem::OnExtensionRegisteredWithRequestContexts( |
| 180 scoped_refptr<Extension> extension) { | 186 scoped_refptr<Extension> extension) { |
| 181 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_); | 187 ExtensionRegistry* registry = ExtensionRegistry::Get(browser_context_); |
| 182 registry->AddReady(extension); | 188 registry->AddReady(extension); |
| 183 registry->TriggerOnReady(extension.get()); | 189 registry->TriggerOnReady(extension.get()); |
| 184 } | 190 } |
| 185 | 191 |
| 186 } // namespace extensions | 192 } // namespace extensions |
| OLD | NEW |