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

Unified Diff: net/base/dnsrr_resolver.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 | « net/base/cookie_monster.cc ('k') | net/base/host_resolver_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/dnsrr_resolver.cc
diff --git a/net/base/dnsrr_resolver.cc b/net/base/dnsrr_resolver.cc
index 14b7b93ce9075314af82d6eddfd3456caebbddab..aedf57e7db8fbd039feabceb207f6c346df0ee71 100644
--- a/net/base/dnsrr_resolver.cc
+++ b/net/base/dnsrr_resolver.cc
@@ -8,12 +8,12 @@
#include <resolv.h>
#endif
-#include "base/lock.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/singleton.h"
#include "base/stl_util-inl.h"
#include "base/string_piece.h"
+#include "base/synchronization/lock.h"
#include "base/task.h"
#include "base/threading/worker_pool.h"
#include "net/base/dns_reload_timer.h"
@@ -144,7 +144,7 @@ class RRResolverWorker {
// deleted.
void Cancel() {
DCHECK_EQ(MessageLoop::current(), origin_loop_);
- AutoLock locked(lock_);
+ base::AutoLock locked(lock_);
canceled_ = true;
}
@@ -271,7 +271,7 @@ class RRResolverWorker {
// after the PostTask, but before unlocking |lock_|. If we do not lock in
// this case, we will end up deleting a locked Lock, which can lead to
// memory leaks or worse errors.
- AutoLock locked(lock_);
+ base::AutoLock locked(lock_);
if (!canceled_)
dnsrr_resolver_->HandleResult(name_, rrtype_, result_, response_);
}
@@ -291,7 +291,7 @@ class RRResolverWorker {
bool canceled;
{
- AutoLock locked(lock_);
+ base::AutoLock locked(lock_);
canceled = canceled_;
if (!canceled) {
origin_loop_->PostTask(
@@ -309,7 +309,7 @@ class RRResolverWorker {
MessageLoop* const origin_loop_;
DnsRRResolver* const dnsrr_resolver_;
- Lock lock_;
+ base::Lock lock_;
bool canceled_;
int result_;
« no previous file with comments | « net/base/cookie_monster.cc ('k') | net/base/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698