| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "apps/shell/browser/shell_extension_system.h" | 5 #include "apps/shell/browser/shell_extension_system.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "apps/shell/browser/shell_app_runtime_api.h" | 9 #include "apps/shell/browser/shell_app_runtime_api.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // * Call PermissionsUpdater::GrantActivePermissions(). | 52 // * Call PermissionsUpdater::GrantActivePermissions(). |
| 53 // * Call ExtensionService::SatisfyImports(). | 53 // * Call ExtensionService::SatisfyImports(). |
| 54 // * Call ExtensionPrefs::OnExtensionInstalled(). | 54 // * Call ExtensionPrefs::OnExtensionInstalled(). |
| 55 // * Send NOTIFICATION_EXTENSION_INSTALLED. | 55 // * Send NOTIFICATION_EXTENSION_INSTALLED. |
| 56 | 56 |
| 57 ExtensionRegistry::Get(browser_context_)->AddEnabled(extension); | 57 ExtensionRegistry::Get(browser_context_)->AddEnabled(extension); |
| 58 | 58 |
| 59 RegisterExtensionWithRequestContexts(extension); | 59 RegisterExtensionWithRequestContexts(extension); |
| 60 | 60 |
| 61 content::NotificationService::current()->Notify( | 61 content::NotificationService::current()->Notify( |
| 62 chrome::NOTIFICATION_EXTENSION_LOADED, | 62 chrome::NOTIFICATION_EXTENSION_LOADED_DEPRECATED, |
| 63 content::Source<BrowserContext>(browser_context_), | 63 content::Source<BrowserContext>(browser_context_), |
| 64 content::Details<const Extension>(extension)); | 64 content::Details<const Extension>(extension)); |
| 65 | 65 |
| 66 // Inform the rest of the extensions system to start. | 66 // Inform the rest of the extensions system to start. |
| 67 ready_.Signal(); | 67 ready_.Signal(); |
| 68 content::NotificationService::current()->Notify( | 68 content::NotificationService::current()->Notify( |
| 69 chrome::NOTIFICATION_EXTENSIONS_READY, | 69 chrome::NOTIFICATION_EXTENSIONS_READY, |
| 70 content::Source<BrowserContext>(browser_context_), | 70 content::Source<BrowserContext>(browser_context_), |
| 71 content::NotificationService::NoDetails()); | 71 content::NotificationService::NoDetails()); |
| 72 | 72 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void ShellExtensionSystem::UnregisterExtensionWithRequestContexts( | 165 void ShellExtensionSystem::UnregisterExtensionWithRequestContexts( |
| 166 const std::string& extension_id, | 166 const std::string& extension_id, |
| 167 const UnloadedExtensionInfo::Reason reason) { | 167 const UnloadedExtensionInfo::Reason reason) { |
| 168 } | 168 } |
| 169 | 169 |
| 170 const OneShotEvent& ShellExtensionSystem::ready() const { | 170 const OneShotEvent& ShellExtensionSystem::ready() const { |
| 171 return ready_; | 171 return ready_; |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace extensions | 174 } // namespace extensions |
| OLD | NEW |