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

Unified Diff: chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.cc

Issue 207613002: Cleanup: Remove NOTIFICATION_EXTENSION_UNLOADED usage in MediaScanManager. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase, add error console 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.cc
===================================================================
--- chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.cc (revision 260931)
+++ chrome/browser/extensions/api/media_galleries_private/gallery_watch_state_tracker.cc (working copy)
@@ -191,7 +191,9 @@
WriteToStorage(extension_id);
}
-void GalleryWatchStateTracker::OnExtensionLoaded(const Extension* extension) {
+void GalleryWatchStateTracker::OnExtensionLoaded(
+ content::BrowserContext* browser_context,
+ const Extension* extension) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
StateStore* storage = ExtensionSystem::Get(profile_)->state_store();
if (!storage)
@@ -205,6 +207,7 @@
}
void GalleryWatchStateTracker::OnExtensionUnloaded(
+ content::BrowserContext* browser_context,
const Extension* extension) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
if (!ContainsKey(watched_extensions_map_, extension->id()))

Powered by Google App Engine
This is Rietveld 408576698