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

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

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Fix ui_arc_unittests 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.h
diff --git a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h b/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h
index 415230f6902ebab131ca67580212e141ec12b1de..51b4b38a2516e1d4a5ece5970e5cf5c151c4b770 100644
--- a/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h
+++ b/chrome/browser/chromeos/arc/arc_downloads_watcher_service.h
@@ -23,15 +23,16 @@ namespace arc {
// Watches Downloads directory and registers newly created media files to
// Android MediaProvider.
-class ArcDownloadsWatcherService : public ArcService,
- public ArcBridgeService::Observer {
+class ArcDownloadsWatcherService
+ : public ArcService,
+ public ArcBridgeService::InstanceObserver<mojom::FileSystemInstance> {
public:
explicit ArcDownloadsWatcherService(ArcBridgeService* bridge_service);
~ArcDownloadsWatcherService() override;
- // ArcBridgeService::Observer
- void OnFileSystemInstanceReady() override;
- void OnFileSystemInstanceClosed() override;
+ // ArcBridgeService::InstanceObserver<mojom::FileSystemInstance>
+ void OnInstanceReady(mojom::FileSystemInstance*, uint32_t version) override;
+ void OnInstanceClosed(mojom::FileSystemInstance*) override;
private:
class DownloadsWatcher;

Powered by Google App Engine
This is Rietveld 408576698