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

Unified Diff: extensions/browser/extension_prefs.cc

Issue 2886923002: [extension SW]: Support event listener registration and event dispatching. (Closed)
Patch Set: sync Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/extension_message_filter.cc ('k') | extensions/common/constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs.cc
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index b3388cd00534d5dc32ddf0a8506429acd513563c..5ce094595abb95bedb27b93228879606c392a21b 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -1926,7 +1926,8 @@ void ExtensionPrefs::FinishExtensionInfoPrefs(
extension_dict->Remove(kDelayedInstallInfo, NULL);
// Clear state that may be registered from a previous install.
- extension_dict->Remove(EventRouter::kRegisteredEvents, NULL);
+ extension_dict->Remove(EventRouter::kRegisteredLazyEvents, nullptr);
+ extension_dict->Remove(EventRouter::kRegisteredServiceWorkerEvents, nullptr);
// FYI, all code below here races on sudden shutdown because |extension_dict|,
// |app_sorting|, |extension_pref_value_map_|, and (potentially) observers
« no previous file with comments | « extensions/browser/extension_message_filter.cc ('k') | extensions/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698