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

Unified Diff: chrome/browser/chromeos/arc/arc_wallpaper_service.cc

Issue 2357053002: Always use arc::InstanceHolder<T>::GetInstanceForMethod (Closed)
Patch Set: rebase, no code change Created 4 years, 3 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/arc/arc_wallpaper_service.cc
diff --git a/chrome/browser/chromeos/arc/arc_wallpaper_service.cc b/chrome/browser/chromeos/arc/arc_wallpaper_service.cc
index 591b05afea8c5d8b42e9e24895708c62d1f6d2fd..ac4221e57a0945acaa2f769af0225f189ffbc573 100644
--- a/chrome/browser/chromeos/arc/arc_wallpaper_service.cc
+++ b/chrome/browser/chromeos/arc/arc_wallpaper_service.cc
@@ -96,12 +96,8 @@ ArcWallpaperService::~ArcWallpaperService() {
void ArcWallpaperService::OnInstanceReady() {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
mojom::WallpaperInstance* wallpaper_instance =
- arc_bridge_service()->wallpaper()->instance();
- if (!wallpaper_instance) {
- LOG(DFATAL) << "OnWallpaperInstanceReady called, "
- << "but no wallpaper instance found";
- return;
- }
+ arc_bridge_service()->wallpaper()->GetInstanceForMethod("Init");
+ DCHECK(wallpaper_instance);
wallpaper_instance->Init(binding_.CreateInterfacePtrAndBind());
ash::WmShell::Get()->wallpaper_controller()->AddObserver(this);
}
« no previous file with comments | « chrome/browser/chromeos/arc/arc_tts_service.cc ('k') | chrome/browser/chromeos/arc/gpu_arc_video_service_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698