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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_service.cc

Issue 11419281: DriveFileSyncService listens to OnNetworkConnected event to restart synchronization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service.cc b/chrome/browser/sync_file_system/drive_file_sync_service.cc
index 09452509e6bf24c4e1b96d004e90853817ca61db..26f062ac2256335603c1699c483c543c883eda93 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_service.cc
@@ -501,8 +501,16 @@ void DriveFileSyncService::OnAuthenticated() {
DVLOG(1) << "OnAuthenticated";
state_ = REMOTE_SERVICE_OK;
FOR_EACH_OBSERVER(
- Observer, observers_,
- OnRemoteServiceStateUpdated(state_, "Authenticated"));
+ Observer, observers_,
+ OnRemoteServiceStateUpdated(state_, "Authenticated"));
+}
+
+void DriveFileSyncService::OnNetworkConnected() {
+ DVLOG(1) << "OnNetworkConnected";
+ state_ = REMOTE_SERVICE_OK;
kinuko 2012/12/03 06:18:48 as in OnAuthenticated() maybe we should flip this
nhiroki 2012/12/03 06:48:54 Done.
+ FOR_EACH_OBSERVER(
+ Observer, observers_,
+ OnRemoteServiceStateUpdated(state_, "Network connected"));
}
// Called by CreateForTesting.
« no previous file with comments | « chrome/browser/sync_file_system/drive_file_sync_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698