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

Unified Diff: chrome/browser/net/sqlite_persistent_cookie_store.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/net/passive_log_collector.cc ('k') | chrome/browser/policy/device_management_policy_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/sqlite_persistent_cookie_store.cc
diff --git a/chrome/browser/net/sqlite_persistent_cookie_store.cc b/chrome/browser/net/sqlite_persistent_cookie_store.cc
index 622ee50dca2eb594956685baed86b191c0ece1d2..734e00bed6687ceebc81118a75ef6dbb90dc4dc7 100644
--- a/chrome/browser/net/sqlite_persistent_cookie_store.cc
+++ b/chrome/browser/net/sqlite_persistent_cookie_store.cc
@@ -107,7 +107,7 @@ class SQLitePersistentCookieStore::Backend
// True if the persistent store should be deleted upon destruction.
bool clear_local_state_on_exit_;
// Guard |pending_|, |num_pending_| and |clear_local_state_on_exit_|.
- Lock lock_;
+ base::Lock lock_;
DISALLOW_COPY_AND_ASSIGN(Backend);
};
@@ -306,7 +306,7 @@ void SQLitePersistentCookieStore::Backend::BatchOperation(
PendingOperationsList::size_type num_pending;
{
- AutoLock locked(lock_);
+ base::AutoLock locked(lock_);
pending_.push_back(po.release());
num_pending = ++num_pending_;
}
@@ -329,7 +329,7 @@ void SQLitePersistentCookieStore::Backend::Commit() {
PendingOperationsList ops;
{
- AutoLock locked(lock_);
+ base::AutoLock locked(lock_);
pending_.swap(ops);
num_pending_ = 0;
}
@@ -449,7 +449,7 @@ void SQLitePersistentCookieStore::Backend::InternalBackgroundClose() {
void SQLitePersistentCookieStore::Backend::SetClearLocalStateOnExit(
bool clear_local_state) {
- AutoLock locked(lock_);
+ base::AutoLock locked(lock_);
clear_local_state_on_exit_ = clear_local_state;
}
SQLitePersistentCookieStore::SQLitePersistentCookieStore(const FilePath& path)
« no previous file with comments | « chrome/browser/net/passive_log_collector.cc ('k') | chrome/browser/policy/device_management_policy_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698