| OLD | NEW |
| 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 Loading... |
| 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 = GET_INSTANCE_FOR_METHOD(arc_bridge_service()->file_system(), |
| 364 "RequestMediaScan"); | 364 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 |
| OLD | NEW |