| 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 348ea55d4dd7c7f04b5197ac7ff9a9c33eb20a26..1c93268467df847b6353e50e4633eb2e167ef952 100644
|
| --- a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc
|
| +++ b/chrome/browser/chromeos/arc/arc_downloads_watcher_service.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/chromeos/arc/arc_downloads_watcher_service.h"
|
|
|
| +#include <map>
|
| #include <memory>
|
| #include <utility>
|
|
|
| @@ -175,22 +176,23 @@ ArcDownloadsWatcherService::ArcDownloadsWatcherService(
|
| ArcBridgeService* bridge_service)
|
| : ArcService(bridge_service), weak_ptr_factory_(this) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| - arc_bridge_service()->AddObserver(this);
|
| + arc_bridge_service()->file_system()->AddObserver(this);
|
| }
|
|
|
| ArcDownloadsWatcherService::~ArcDownloadsWatcherService() {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| - arc_bridge_service()->RemoveObserver(this);
|
| + arc_bridge_service()->file_system()->RemoveObserver(this);
|
| StopWatchingDownloads();
|
| DCHECK(!watcher_);
|
| }
|
|
|
| -void ArcDownloadsWatcherService::OnFileSystemInstanceReady() {
|
| +void ArcDownloadsWatcherService::OnInstanceReady(mojom::FileSystemInstance*,
|
| + uint32_t version) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| StartWatchingDownloads();
|
| }
|
|
|
| -void ArcDownloadsWatcherService::OnFileSystemInstanceClosed() {
|
| +void ArcDownloadsWatcherService::OnInstanceClosed(mojom::FileSystemInstance*) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| StopWatchingDownloads();
|
| }
|
| @@ -219,7 +221,7 @@ void ArcDownloadsWatcherService::OnDownloadsChanged(
|
| const std::vector<base::FilePath>& paths) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::FILE);
|
|
|
| - auto* instance = arc_bridge_service()->file_system_instance();
|
| + auto* instance = arc_bridge_service()->file_system()->instance();
|
| if (!instance)
|
| return;
|
|
|
|
|