diff options
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r-- | chrome/browser/ui/cocoa/objc_zombie.mm | 12 | ||||
-rw-r--r-- | chrome/browser/ui/login/login_prompt.cc | 6 | ||||
-rw-r--r-- | chrome/browser/ui/login/login_prompt.h | 4 |
3 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/ui/cocoa/objc_zombie.mm b/chrome/browser/ui/cocoa/objc_zombie.mm index 5cf6469..31d2a62a 100644 --- a/chrome/browser/ui/cocoa/objc_zombie.mm +++ b/chrome/browser/ui/cocoa/objc_zombie.mm @@ -10,8 +10,8 @@ #import <objc/objc-class.h> -#include "base/lock.h" #include "base/logging.h" +#include "base/synchronization/lock.h" #import "chrome/app/breakpad_mac.h" #import "chrome/browser/ui/cocoa/objc_method_swizzle.h" @@ -56,7 +56,7 @@ size_t g_fatZombieSize = 0; BOOL g_zombieAllObjects = NO; // Protects |g_zombieCount|, |g_zombieIndex|, and |g_zombies|. -Lock lock_; +base::Lock lock_; // How many zombies to keep before freeing, and the current head of // the circular buffer. @@ -147,7 +147,7 @@ void ZombieDealloc(id self, SEL _cmd) { // Don't involve the lock when creating zombies without a treadmill. if (g_zombieCount > 0) { - AutoLock pin(lock_); + base::AutoLock pin(lock_); // Check the count again in a thread-safe manner. if (g_zombieCount > 0) { @@ -175,7 +175,7 @@ Class ZombieWasa(id object) { // For instances which weren't big enough to store |wasa|, check if // the object is still on the treadmill. - AutoLock pin(lock_); + base::AutoLock pin(lock_); for (size_t i=0; i < g_zombieCount; ++i) { if (g_zombies[i].object == object) return g_zombies[i].wasa; @@ -325,7 +325,7 @@ BOOL ZombieEnable(BOOL zombieAllObjects, ZombieRecord* oldZombies = g_zombies; { - AutoLock pin(lock_); + base::AutoLock pin(lock_); // Save the old index in case zombies need to be transferred. size_t oldIndex = g_zombieIndex; @@ -396,7 +396,7 @@ void ZombieDisable() { ZombieRecord* oldZombies = g_zombies; { - AutoLock pin(lock_); // In case any |-dealloc| are in-progress. + base::AutoLock pin(lock_); // In case any |-dealloc| are in-progress. g_zombieCount = 0; g_zombies = NULL; } diff --git a/chrome/browser/ui/login/login_prompt.cc b/chrome/browser/ui/login/login_prompt.cc index 3f37587..ac2c7c2 100644 --- a/chrome/browser/ui/login/login_prompt.cc +++ b/chrome/browser/ui/login/login_prompt.cc @@ -8,7 +8,7 @@ #include "app/l10n_util.h" #include "base/command_line.h" -#include "base/lock.h" +#include "base/synchronization/lock.h" #include "base/utf_string_conversions.h" #include "chrome/browser/browser_thread.h" #include "chrome/browser/password_manager/password_manager.h" @@ -318,14 +318,14 @@ void LoginHandler::ReleaseSoon() { // Returns whether authentication had been handled (SetAuth or CancelAuth). bool LoginHandler::WasAuthHandled() const { - AutoLock lock(handled_auth_lock_); + base::AutoLock lock(handled_auth_lock_); bool was_handled = handled_auth_; return was_handled; } // Marks authentication as handled and returns the previous handled state. bool LoginHandler::TestAndSetAuthHandled() { - AutoLock lock(handled_auth_lock_); + base::AutoLock lock(handled_auth_lock_); bool was_handled = handled_auth_; handled_auth_ = true; return was_handled; diff --git a/chrome/browser/ui/login/login_prompt.h b/chrome/browser/ui/login/login_prompt.h index b566402..868da20 100644 --- a/chrome/browser/ui/login/login_prompt.h +++ b/chrome/browser/ui/login/login_prompt.h @@ -9,8 +9,8 @@ #include <string> #include "base/basictypes.h" -#include "base/lock.h" #include "base/ref_counted.h" +#include "base/synchronization/lock.h" #include "chrome/browser/password_manager/password_manager.h" #include "chrome/common/notification_observer.h" #include "chrome/common/notification_registrar.h" @@ -117,7 +117,7 @@ class LoginHandler : public base::RefCountedThreadSafe<LoginHandler>, // True if we've handled auth (SetAuth or CancelAuth has been called). bool handled_auth_; - mutable Lock handled_auth_lock_; + mutable base::Lock handled_auth_lock_; // The ConstrainedWindow that is hosting our LoginView. // This should only be accessed on the UI loop. |