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

Side by Side Diff: apps/shell/browser/shell_extension_system.cc

Issue 242613004: Replace NOTIFICATION_EXTENSION_LOADED to NOTIFICATION_EXTENSION_LOADED_DEPRECATED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 8 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
« no previous file with comments | « apps/app_window_geometry_cache.cc ('k') | chrome/browser/apps/ephemeral_app_launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « apps/app_window_geometry_cache.cc ('k') | chrome/browser/apps/ephemeral_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698