summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-08 05:13:02 +0000
committerlipalani@chromium.org <lipalani@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-08 05:13:02 +0000
commit7b4c6bea2e8ecdba98f90c6188ebf1ffc1b5d750 (patch)
tree30ed38fe6bd5fa6e870534ec3e43a760b7c18d1f
parent3202428d61af0652fe3ada91acf726802ff8efc9 (diff)
downloadchromium_src-7b4c6bea2e8ecdba98f90c6188ebf1ffc1b5d750.zip
chromium_src-7b4c6bea2e8ecdba98f90c6188ebf1ffc1b5d750.tar.gz
chromium_src-7b4c6bea2e8ecdba98f90c6188ebf1ffc1b5d750.tar.bz2
Speculative fix for sync not exiting issue.
BUG=120709 TEST= Review URL: https://chromiumcodereview.appspot.com/10384020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135794 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/sync/glue/non_frontend_data_type_controller.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/sync/glue/non_frontend_data_type_controller.cc b/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
index c8f8455..8484f0d 100644
--- a/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
+++ b/chrome/browser/sync/glue/non_frontend_data_type_controller.cc
@@ -80,6 +80,8 @@ void NonFrontendDataTypeController::StopWhileAssociating() {
abort_association_ = true;
if (model_associator_.get())
model_associator_->AbortAssociation();
+ if (!start_association_called_.IsSignaled())
+ return; // There is nothing more for us to do.
}
// Wait for the model association to abort.
@@ -410,7 +412,6 @@ void NonFrontendDataTypeController::set_change_processor(
void NonFrontendDataTypeController::StartAssociation() {
DCHECK(!BrowserThread::CurrentlyOn(BrowserThread::UI));
- start_association_called_.Signal();
DCHECK_EQ(state_, ASSOCIATING);
{
base::AutoLock lock(abort_association_lock_);
@@ -418,6 +419,7 @@ void NonFrontendDataTypeController::StartAssociation() {
abort_association_complete_.Signal();
return;
}
+ start_association_called_.Signal();
CreateSyncComponents();
}