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

Unified Diff: chrome/browser/chromeos/login/wallpaper_manager.cc

Issue 238633009: cleanup: Use EventRouter instead of ExtensionSystem::Get->event_router() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error for chromeos build. 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/chromeos/login/wallpaper_manager.cc
diff --git a/chrome/browser/chromeos/login/wallpaper_manager.cc b/chrome/browser/chromeos/login/wallpaper_manager.cc
index a0017cb339f22c922fdb9ec2f62c22163b88de51..751bcc34c3f7e0afcdeb718f95279660815b5190 100644
--- a/chrome/browser/chromeos/login/wallpaper_manager.cc
+++ b/chrome/browser/chromeos/login/wallpaper_manager.cc
@@ -984,15 +984,14 @@ void WallpaperManager::RemoveObserver(WallpaperManager::Observer* observer) {
void WallpaperManager::EnableSurpriseMe() {
Profile* profile = ProfileManager::GetActiveUserProfile();
DCHECK(profile);
- DCHECK(extensions::ExtensionSystem::Get(profile)->event_router());
+ DCHECK(extensions::EventRouter::Get(profile));
scoped_ptr<extensions::Event> event(
new extensions::Event(
extensions::api::wallpaper_private::OnRequestEnableSurpriseMe::kEventName,
extensions::api::wallpaper_private::OnRequestEnableSurpriseMe::Create()));
- extensions::ExtensionSystem::Get(profile)->event_router()
- ->DispatchEventToExtension(extension_misc::kWallpaperManagerId,
- event.Pass());
+ extensions::EventRouter::Get(profile)->DispatchEventToExtension(
+ extension_misc::kWallpaperManagerId, event.Pass());
}
void WallpaperManager::NotifyAnimationFinished() {

Powered by Google App Engine
This is Rietveld 408576698