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

Unified Diff: chrome/test/sync/engine/mock_connection_manager.h

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/test/automation/tab_proxy.cc ('k') | chrome/test/sync/engine/mock_connection_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/sync/engine/mock_connection_manager.h
diff --git a/chrome/test/sync/engine/mock_connection_manager.h b/chrome/test/sync/engine/mock_connection_manager.h
index a6edce69d2539f4bb536199a3d476ef1c78627f3..b560059cefb283b22cb132481fc4dd116175a10c 100644
--- a/chrome/test/sync/engine/mock_connection_manager.h
+++ b/chrome/test/sync/engine/mock_connection_manager.h
@@ -190,7 +190,7 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
void set_store_birthday(string new_birthday) {
// Multiple threads can set store_birthday_ in our tests, need to lock it to
// ensure atomic read/writes and avoid race conditions.
- AutoLock lock(store_birthday_lock_);
+ base::AutoLock lock(store_birthday_lock_);
store_birthday_ = new_birthday;
}
@@ -218,7 +218,7 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
// Const necessary to avoid any hidden copy-on-write issues that would break
// in multithreaded scenarios (see |set_store_birthday|).
const std::string& store_birthday() {
- AutoLock lock(store_birthday_lock_);
+ base::AutoLock lock(store_birthday_lock_);
return store_birthday_;
}
@@ -277,7 +277,7 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
// The store birthday we send to the client.
string store_birthday_;
- Lock store_birthday_lock_;
+ base::Lock store_birthday_lock_;
bool store_birthday_sent_;
bool client_stuck_;
string commit_time_rename_prepended_string_;
@@ -312,7 +312,7 @@ class MockConnectionManager : public browser_sync::ServerConnectionManager {
// Protected by |response_code_override_lock_|.
bool fail_with_auth_invalid_;
- Lock response_code_override_lock_;
+ base::Lock response_code_override_lock_;
// True if we are only accepting GetUpdatesCallerInfo::PERIODIC requests.
bool fail_non_periodic_get_updates_;
« no previous file with comments | « chrome/test/automation/tab_proxy.cc ('k') | chrome/test/sync/engine/mock_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698