Index: chrome/browser/sync/profile_sync_service.h |
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h |
index 6e8ea6e4f998eb39c29e5e30ac49781c32e5b310..ab2a9de9546a7db664e3f133c0f1ab1aa8d4d6b8 100644 |
--- a/chrome/browser/sync/profile_sync_service.h |
+++ b/chrome/browser/sync/profile_sync_service.h |
@@ -23,6 +23,7 @@ |
#include "chrome/browser/sync/failed_datatypes_handler.h" |
#include "chrome/browser/sync/glue/data_type_controller.h" |
#include "chrome/browser/sync/glue/data_type_manager.h" |
+#include "chrome/browser/sync/glue/data_type_manager_observer.h" |
#include "chrome/browser/sync/glue/sync_backend_host.h" |
#include "chrome/browser/sync/invalidations/invalidator_storage.h" |
#include "chrome/browser/sync/profile_sync_service_observer.h" |
@@ -149,6 +150,7 @@ class EncryptedData; |
// |
class ProfileSyncService : public browser_sync::SyncFrontend, |
public browser_sync::SyncPrefObserver, |
+ public browser_sync::DataTypeManagerObserver, |
public syncer::UnrecoverableErrorHandler, |
public content::NotificationObserver, |
public ProfileKeyedService { |
@@ -286,6 +288,15 @@ class ProfileSyncService : public browser_sync::SyncFrontend, |
virtual void OnActionableError( |
const syncer::SyncProtocolError& error) OVERRIDE; |
+ // DataTypeManagerObserver implementation. |
+ virtual void OnConfigureBlocked() OVERRIDE; |
+ virtual void OnConfigureDone() OVERRIDE; |
+ virtual void OnConfigureRetry() OVERRIDE; |
+ virtual void OnConfigureStart() OVERRIDE; |
+ |
+ // Updates configure start and stop times and does UMA logging if required. |
+ void UpdateConfigureTimes(); |
tim (not reviewing)
2012/08/16 18:25:20
What's this for?
Raghu Simha
2012/08/17 01:56:42
I added it so I could share the code that updated
|
+ |
// Update the last auth error and notify observers of error state. |
void UpdateAuthErrorState(const GoogleServiceAuthError& error); |
@@ -781,9 +792,9 @@ class ProfileSyncService : public browser_sync::SyncFrontend, |
// called. |
base::Time start_up_time_; |
- // The time that NOTIFICATION_SYNC_CONFIGURE_START is received. This member |
- // is zero if NOTIFICATION_SYNC_CONFIGURE_START has not been fired yet, and |
- // is reset to zero once NOTIFICATION_SYNC_CONFIGURE_DONE is received. |
+ // The time that OnConfigureStart is called. This member is zero if |
+ // OnConfigureStart has not yet been called, and is reset to zero once |
+ // OnConfigureDone is called. |
base::Time sync_configure_start_time_; |
// Indicates if this is the first time sync is being configured. This value |