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

Unified Diff: chrome/browser/sync/glue/data_type_manager_impl.cc

Issue 7281017: [Sync] Add RequestCleanupDisabledTypes() method to SyncManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced with TODOs Created 9 years, 5 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 | « chrome/browser/sync/engine/syncer.cc ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/data_type_manager_impl.cc
diff --git a/chrome/browser/sync/glue/data_type_manager_impl.cc b/chrome/browser/sync/glue/data_type_manager_impl.cc
index 5a7cf23a0a71a781ce606c7d16df96a195b50742..4a957e6651316babf42d6f4465f9217f62299fd0 100644
--- a/chrome/browser/sync/glue/data_type_manager_impl.cc
+++ b/chrome/browser/sync/glue/data_type_manager_impl.cc
@@ -219,7 +219,7 @@ void DataTypeManagerImpl::Restart(sync_api::ConfigureReason reason,
}
void DataTypeManagerImpl::DownloadReady(bool success) {
- DCHECK(state_ == DOWNLOAD_PENDING);
+ DCHECK_EQ(state_, DOWNLOAD_PENDING);
if (!success) {
Abort(UNRECOVERABLE_ERROR, FROM_HERE, needs_start_[0]->type());
@@ -386,7 +386,8 @@ void DataTypeManagerImpl::Stop() {
}
void DataTypeManagerImpl::FinishStop() {
- DCHECK(state_== CONFIGURING || state_ == STOPPING || state_ == BLOCKED);
+ DCHECK(state_== CONFIGURING || state_ == STOPPING || state_ == BLOCKED ||
+ state_ == DOWNLOAD_PENDING);
// Simply call the Stop() method on all running data types.
for (DataTypeController::TypeMap::const_iterator it = controllers_.begin();
it != controllers_.end(); ++it) {
« no previous file with comments | « chrome/browser/sync/engine/syncer.cc ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698