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

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

Issue 87463002: Only re-enable remote service if the task used the network. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 cec041fa3493ad169ae7d832a2c6951b75e6252a..4549d9e0058f78b1e951912d9949f2fc11e28dc5 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_engine.h
+++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.h
@@ -101,7 +101,8 @@ class SyncEngine : public RemoteFileSyncService,
// SyncTaskManager::Client overrides.
virtual void MaybeScheduleNextTask() OVERRIDE;
- virtual void NotifyLastOperationStatus(SyncStatusCode sync_status) OVERRIDE;
+ virtual void NotifyLastOperationStatus(SyncStatusCode sync_status,
+ bool used_network) OVERRIDE;
// drive::DriveNotificationObserver overrides.
virtual void OnNotificationReceived() OVERRIDE;
@@ -140,7 +141,8 @@ class SyncEngine : public RemoteFileSyncService,
void DidFetchChangeList(SyncStatusCallback& callback);
void MaybeStartFetchChanges();
- void UpdateServiceStateFromSyncStatusCode(SyncStatusCode state);
+ void UpdateServiceStateFromSyncStatusCode(SyncStatusCode state,
+ bool used_network);
void UpdateServiceState(RemoteServiceState state,
const std::string& description);
void UpdateRegisteredApps();

Powered by Google App Engine
This is Rietveld 408576698