| Index: chrome/browser/sync/glue/frontend_data_type_controller.cc
|
| diff --git a/chrome/browser/sync/glue/frontend_data_type_controller.cc b/chrome/browser/sync/glue/frontend_data_type_controller.cc
|
| index fca7a1b8358ceb0103416236a0fd342e84529605..88698ef0e08fe03150d3008f85d4b271a4b15894 100644
|
| --- a/chrome/browser/sync/glue/frontend_data_type_controller.cc
|
| +++ b/chrome/browser/sync/glue/frontend_data_type_controller.cc
|
| @@ -97,9 +97,9 @@ bool FrontendDataTypeController::Associate() {
|
|
|
| base::TimeTicks start_time = base::TimeTicks::Now();
|
| SyncError error;
|
| - bool merge_success = model_associator()->AssociateModels(&error);
|
| + error = model_associator()->AssociateModels();
|
| RecordAssociationTime(base::TimeTicks::Now() - start_time);
|
| - if (!merge_success) {
|
| + if (error.IsSet()) {
|
| StartFailed(ASSOCIATION_FAILED, error);
|
| return false;
|
| }
|
| @@ -172,7 +172,7 @@ void FrontendDataTypeController::Stop() {
|
|
|
| if (model_associator()) {
|
| SyncError error; // Not used.
|
| - model_associator()->DisassociateModels(&error);
|
| + error = model_associator()->DisassociateModels();
|
| }
|
|
|
| set_model_associator(NULL);
|
|
|