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

Side by Side Diff: chrome/browser/chromeos/arc/downloads_watcher/arc_downloads_watcher_service.cc

Issue 2599673005: arc: Use GET_INTERFACE_FOR_METHOD macro (Closed)
Patch Set: Addressed feedback Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/arc/downloads_watcher/arc_downloads_watcher_se rvice.h" 5 #include "chrome/browser/chromeos/arc/downloads_watcher/arc_downloads_watcher_se rvice.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <iterator> 10 #include <iterator>
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 if (watcher_) { 353 if (watcher_) {
354 BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE, 354 BrowserThread::DeleteSoon(BrowserThread::FILE, FROM_HERE,
355 watcher_.release()); 355 watcher_.release());
356 } 356 }
357 } 357 }
358 358
359 void ArcDownloadsWatcherService::OnDownloadsChanged( 359 void ArcDownloadsWatcherService::OnDownloadsChanged(
360 const std::vector<std::string>& paths) { 360 const std::vector<std::string>& paths) {
361 DCHECK_CURRENTLY_ON(BrowserThread::UI); 361 DCHECK_CURRENTLY_ON(BrowserThread::UI);
362 362
363 auto* instance = arc_bridge_service()->file_system()->GetInstanceForMethod( 363 auto* instance = ARC_GET_INSTANCE_FOR_METHOD(
364 "RequestMediaScan"); 364 arc_bridge_service()->file_system(), RequestMediaScan);
365 if (!instance) 365 if (!instance)
366 return; 366 return;
367 instance->RequestMediaScan(paths); 367 instance->RequestMediaScan(paths);
368 } 368 }
369 369
370 } // namespace arc 370 } // namespace arc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698