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

Unified Diff: sync/internal_api/sync_rollback_manager_base.h

Issue 363543002: Properly handle initialization failure and following manager shutdown without (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « sync/internal_api/sync_rollback_manager.cc ('k') | sync/internal_api/sync_rollback_manager_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/sync_rollback_manager_base.h
diff --git a/sync/internal_api/sync_rollback_manager_base.h b/sync/internal_api/sync_rollback_manager_base.h
index 17892a8ed06eb9bc64fd2b9a772478cc97d06355..8d32d7db6c00f8fe6cee3de686116b72e1a6783b 100644
--- a/sync/internal_api/sync_rollback_manager_base.h
+++ b/sync/internal_api/sync_rollback_manager_base.h
@@ -123,6 +123,10 @@ class SYNC_EXPORT_PRIVATE SyncRollbackManagerBase :
syncer::TypeDebugInfoObserver* observer) OVERRIDE;
virtual void RequestEmitDebugInfo() OVERRIDE;
+ bool initialized() const {
+ return initialized_;
+ }
+
private:
void NotifyInitializationSuccess();
void NotifyInitializationFailure();
@@ -144,6 +148,8 @@ class SYNC_EXPORT_PRIVATE SyncRollbackManagerBase :
scoped_ptr<SyncEncryptionHandler> dummy_handler_;
+ bool initialized_;
+
DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase);
};
« no previous file with comments | « sync/internal_api/sync_rollback_manager.cc ('k') | sync/internal_api/sync_rollback_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698