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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_engine.h

Issue 62883005: Implement SyncEngine::UpdateRegisteredApps() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Created 7 years, 1 month 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/sync_file_system/drive_backend/sync_engine.h
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine.h b/chrome/browser/sync_file_system/drive_backend/sync_engine.h
index d5264fcb5f27f12250c234b102ed802bd8253ee5..ca22b88b48cb0381181ee648d06b1a08724333cf 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine.h
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.h
@@ -16,7 +16,7 @@
#include "chrome/browser/sync_file_system/sync_task_manager.h"
#include "net/base/network_change_notifier.h"
-class ExtensionService;
+class ExtensionServiceInterface;
namespace base {
class SequencedTaskRunner;
@@ -49,7 +49,7 @@ class SyncEngine : public RemoteFileSyncService,
base::SequencedTaskRunner* task_runner,
scoped_ptr<drive::DriveServiceInterface> drive_service,
drive::DriveNotificationManager* notification_manager,
- ExtensionService* extension_service);
+ ExtensionServiceInterface* extension_service);
virtual ~SyncEngine();
void Initialize();
@@ -120,6 +120,7 @@ class SyncEngine : public RemoteFileSyncService,
virtual RemoteChangeProcessor* GetRemoteChangeProcessor() OVERRIDE;
private:
+ friend class SyncEngineTest;
void DoDisableApp(const std::string& app_id,
const SyncStatusCallback& callback);
void DoEnableApp(const std::string& app_id,
@@ -141,6 +142,7 @@ class SyncEngine : public RemoteFileSyncService,
const std::string& description);
void UpdateServiceState(RemoteServiceState state,
const std::string& description);
+ void UpdateRegisteredApps();
base::FilePath base_dir_;
base::FilePath temporary_file_dir_;
@@ -155,7 +157,7 @@ class SyncEngine : public RemoteFileSyncService,
// I.e. the owner should declare the dependency explicitly by calling
// BrowserContextKeyedService::DependsOn().
drive::DriveNotificationManager* notification_manager_;
- ExtensionService* extension_service_;
+ ExtensionServiceInterface* extension_service_;
ObserverList<SyncServiceObserver> service_observers_;
ObserverList<FileStatusObserver> file_status_observers_;

Powered by Google App Engine
This is Rietveld 408576698