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

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

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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/glue/sync_backend_host.h ('k') | chrome/browser/sync/syncable/directory_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.h ('k') | chrome/browser/sync/syncable/directory_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698