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

Unified Diff: chrome/browser/sync/engine/syncapi.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/engine/net/server_connection_manager.cc ('k') | chrome/browser/sync/engine/syncer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncapi.cc
diff --git a/chrome/browser/sync/engine/syncapi.cc b/chrome/browser/sync/engine/syncapi.cc
index 24487eb86a8ff58941eb8eb57ef3228af8bcb595..b6f833940fcd0ad7f53f586bdf378ec0c35a3b2e 100644
--- a/chrome/browser/sync/engine/syncapi.cc
+++ b/chrome/browser/sync/engine/syncapi.cc
@@ -11,12 +11,12 @@
#include <vector>
#include "base/base64.h"
-#include "base/lock.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/sha1.h"
#include "base/string_util.h"
+#include "base/synchronization/lock.h"
#include "base/task.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_thread.h"
@@ -1079,7 +1079,7 @@ class SyncManager::SyncInternal
// Whether we're initialized to the point of being able to accept changes
// (and hence allow transaction creation). See initialized_ for details.
bool initialized() const {
- AutoLock lock(initialized_mutex_);
+ base::AutoLock lock(initialized_mutex_);
return initialized_;
}
@@ -1319,7 +1319,7 @@ class SyncManager::SyncInternal
// meaning we are ready to accept changes. Protected by initialized_mutex_
// as it can get read/set by both the SyncerThread and the AuthWatcherThread.
bool initialized_;
- mutable Lock initialized_mutex_;
+ mutable base::Lock initialized_mutex_;
notifier::NotifierOptions notifier_options_;
@@ -1540,7 +1540,7 @@ void SyncManager::SyncInternal::MarkAndNotifyInitializationComplete() {
// between their respective threads to call MarkAndNotify. We need to make
// sure the observer is notified once and only once.
{
- AutoLock lock(initialized_mutex_);
+ base::AutoLock lock(initialized_mutex_);
if (initialized_)
return;
initialized_ = true;
« no previous file with comments | « chrome/browser/sync/engine/net/server_connection_manager.cc ('k') | chrome/browser/sync/engine/syncer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698