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

Unified Diff: chrome/browser/sync/profile_sync_service.h

Issue 9235040: [Sync] Handle errors during first sync gracefully. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for review. Created 8 years, 11 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/sync/profile_sync_service.h
diff --git a/chrome/browser/sync/profile_sync_service.h b/chrome/browser/sync/profile_sync_service.h
index 09a5cc4e7e60c4aa2f5e8c98bcb15c317665b046..d9d8068170e4f26b1aced82a2e858641bd2ba546 100644
--- a/chrome/browser/sync/profile_sync_service.h
+++ b/chrome/browser/sync/profile_sync_service.h
@@ -24,6 +24,7 @@
#include "chrome/browser/sync/engine/model_safe_worker.h"
#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/sync_backend_host.h"
#include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.h"
#include "chrome/browser/sync/internal_api/sync_manager.h"
@@ -216,6 +217,7 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
const browser_sync::WeakHandle<browser_sync::JsBackend>& js_backend,
bool success) OVERRIDE;
virtual void OnSyncCycleCompleted() OVERRIDE;
+ virtual void OnSyncConfigureRetry() OVERRIDE;
virtual void OnAuthError() OVERRIDE;
virtual void OnStopSyncingPermanently() OVERRIDE;
virtual void OnClearServerDataFailed() OVERRIDE;
@@ -492,6 +494,10 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
virtual const FailedDatatypesHandler& failed_datatypes_handler();
+ browser_sync::DataTypeManager::ConfigureStatus configure_status() {
+ return configure_status_;
+ }
+
// ProfileKeyedService implementation.
virtual void Shutdown() OVERRIDE;
@@ -712,6 +718,8 @@ class ProfileSyncService : public browser_sync::SyncFrontend,
scoped_ptr<browser_sync::BackendUnrecoverableErrorHandler>
backend_unrecoverable_error_handler_;
+ browser_sync::DataTypeManager::ConfigureStatus configure_status_;
+
DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
};

Powered by Google App Engine
This is Rietveld 408576698