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

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

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: More rebasing Created 4 years, 5 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 348ea55d4dd7c7f04b5197ac7ff9a9c33eb20a26..cf63bf4dfe3933669f078652c92a5bcaa14a56a4 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,22 @@ 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() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
StartWatchingDownloads();
}
-void ArcDownloadsWatcherService::OnFileSystemInstanceClosed() {
+void ArcDownloadsWatcherService::OnInstanceClosed() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
StopWatchingDownloads();
}
@@ -219,7 +220,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;
« no previous file with comments | « chrome/browser/chromeos/arc/arc_downloads_watcher_service.h ('k') | chrome/browser/chromeos/arc/arc_navigation_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698