Index: chrome/browser/sync/glue/sync_backend_host.cc |
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc |
index 4dafe249d9d0a50de14532a140b73c135cfdcf2f..a1ca25500c5132e7a0a2ff7b3dd17968c5880362 100644 |
--- a/chrome/browser/sync/glue/sync_backend_host.cc |
+++ b/chrome/browser/sync/glue/sync_backend_host.cc |
@@ -153,7 +153,7 @@ std::string SyncBackendHost::RestoreEncryptionBootstrapToken() { |
} |
bool SyncBackendHost::IsNigoriEnabled() const { |
- AutoLock lock(registrar_lock_); |
+ base::AutoLock lock(registrar_lock_); |
// Note that NIGORI is only ever added/removed from routing_info once, |
// during initialization / first configuration, so there is no real 'race' |
// possible here or possibility of stale return value. |
@@ -324,7 +324,7 @@ void SyncBackendHost::ConfigureDataTypes(const syncable::ModelTypeSet& types, |
bool deleted_type = false; |
{ |
- AutoLock lock(registrar_lock_); |
+ base::AutoLock lock(registrar_lock_); |
for (DataTypeController::TypeMap::const_iterator it = |
data_type_controllers_.begin(); |
it != data_type_controllers_.end(); ++it) { |
@@ -382,7 +382,7 @@ void SyncBackendHost::RequestNudge() { |
void SyncBackendHost::ActivateDataType( |
DataTypeController* data_type_controller, |
ChangeProcessor* change_processor) { |
- AutoLock lock(registrar_lock_); |
+ base::AutoLock lock(registrar_lock_); |
// Ensure that the given data type is in the PASSIVE group. |
browser_sync::ModelSafeRoutingInfo::iterator i = |
@@ -402,7 +402,7 @@ void SyncBackendHost::ActivateDataType( |
void SyncBackendHost::DeactivateDataType( |
DataTypeController* data_type_controller, |
ChangeProcessor* change_processor) { |
- AutoLock lock(registrar_lock_); |
+ base::AutoLock lock(registrar_lock_); |
registrar_.routing_info.erase(data_type_controller->type()); |
std::map<syncable::ModelType, ChangeProcessor*>::size_type erased = |
@@ -505,7 +505,7 @@ const SyncSessionSnapshot* SyncBackendHost::GetLastSessionSnapshot() const { |
} |
void SyncBackendHost::GetWorkers(std::vector<ModelSafeWorker*>* out) { |
- AutoLock lock(registrar_lock_); |
+ base::AutoLock lock(registrar_lock_); |
out->clear(); |
for (WorkerMap::const_iterator it = registrar_.workers.begin(); |
it != registrar_.workers.end(); ++it) { |
@@ -514,7 +514,7 @@ void SyncBackendHost::GetWorkers(std::vector<ModelSafeWorker*>* out) { |
} |
void SyncBackendHost::GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out) { |
- AutoLock lock(registrar_lock_); |
+ base::AutoLock lock(registrar_lock_); |
ModelSafeRoutingInfo copy(registrar_.routing_info); |
out->swap(copy); |
} |
@@ -760,7 +760,7 @@ void SyncBackendHost::HandleInitializationCompletedOnFrontendLoop() { |
bool SyncBackendHost::Core::IsCurrentThreadSafeForModel( |
syncable::ModelType model_type) { |
- AutoLock lock(host_->registrar_lock_); |
+ base::AutoLock lock(host_->registrar_lock_); |
browser_sync::ModelSafeRoutingInfo::const_iterator routing_it = |
host_->registrar_.routing_info.find(model_type); |