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

Unified Diff: chrome/browser/browser_thread.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/browser_thread.h ('k') | chrome/browser/cancelable_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_thread.cc
diff --git a/chrome/browser/browser_thread.cc b/chrome/browser/browser_thread.cc
index 60d4450153511fd193387bafcdb0bc40ccec3638..877c2c55c67dbcab5e3038e6f5c4f380910e38ba 100644
--- a/chrome/browser/browser_thread.cc
+++ b/chrome/browser/browser_thread.cc
@@ -63,7 +63,7 @@ class BrowserThreadMessageLoopProxy : public base::MessageLoopProxy {
};
-Lock BrowserThread::lock_;
+base::Lock BrowserThread::lock_;
BrowserThread* BrowserThread::browser_threads_[ID_COUNT];
@@ -81,7 +81,7 @@ BrowserThread::BrowserThread(ID identifier, MessageLoop* message_loop)
}
void BrowserThread::Initialize() {
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
DCHECK(identifier_ >= 0 && identifier_ < ID_COUNT);
DCHECK(browser_threads_[identifier_] == NULL);
browser_threads_[identifier_] = this;
@@ -93,7 +93,7 @@ BrowserThread::~BrowserThread() {
// correct BrowserThread succeeds.
Stop();
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
browser_threads_[identifier_] = NULL;
#ifndef NDEBUG
// Double check that the threads are ordered correctly in the enumeration.
@@ -106,7 +106,7 @@ BrowserThread::~BrowserThread() {
// static
bool BrowserThread::IsWellKnownThread(ID identifier) {
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
return (identifier >= 0 && identifier < ID_COUNT &&
browser_threads_[identifier]);
}
@@ -118,7 +118,7 @@ bool BrowserThread::CurrentlyOn(ID identifier) {
// function.
// http://crbug.com/63678
base::ThreadRestrictions::ScopedAllowSingleton allow_singleton;
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
DCHECK(identifier >= 0 && identifier < ID_COUNT);
return browser_threads_[identifier] &&
browser_threads_[identifier]->message_loop() == MessageLoop::current();
@@ -126,7 +126,7 @@ bool BrowserThread::CurrentlyOn(ID identifier) {
// static
bool BrowserThread::IsMessageLoopValid(ID identifier) {
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
DCHECK(identifier >= 0 && identifier < ID_COUNT);
return browser_threads_[identifier] &&
browser_threads_[identifier]->message_loop();
« no previous file with comments | « chrome/browser/browser_thread.h ('k') | chrome/browser/cancelable_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698