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

Unified Diff: chrome/browser/chromeos/arc/arc_downloads_watcher_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_downloads_watcher_service.cc
diff --git a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc b/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc
index 22c1dab7c6f740b944141582ac0bf4ed6c7f0cb1..b440e327f85a4fca1a82ee1a5bb0d38af45a31e4 100644
--- a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc
+++ b/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc
@@ -288,7 +288,8 @@ void ArcDownloadsWatcherService::OnDownloadsChanged(
mojo::Array<mojo::String> paths) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- auto* instance = arc_bridge_service()->file_system()->instance();
+ auto* instance = arc_bridge_service()->file_system()->GetInstanceForMethod(
+ "RequestMediaScan");
if (!instance)
return;
instance->RequestMediaScan(std::move(paths));
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.cc ('k') | chrome/browser/chromeos/arc/arc_enterprise_reporting_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698