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

Unified Diff: chrome/browser/ui/cocoa/objc_zombie.mm

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/transport_security_persister.h ('k') | chrome/browser/ui/login/login_prompt.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/objc_zombie.mm
diff --git a/chrome/browser/ui/cocoa/objc_zombie.mm b/chrome/browser/ui/cocoa/objc_zombie.mm
index 5cf6469f4d28d30cbc068092221aa6e8af02eb92..31d2a62a9f4d6c1ddbd121963dc02c57e8c5cc32 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;
}
« no previous file with comments | « chrome/browser/transport_security_persister.h ('k') | chrome/browser/ui/login/login_prompt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698