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

Unified Diff: chrome/browser/history/top_sites.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/history/top_sites.h ('k') | chrome/browser/host_zoom_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites.cc
diff --git a/chrome/browser/history/top_sites.cc b/chrome/browser/history/top_sites.cc
index 16355230338593dad9680302702a82e8f1541f6a..bea8bee5b9d296134e1600dccd87e6140acab3dc 100644
--- a/chrome/browser/history/top_sites.cc
+++ b/chrome/browser/history/top_sites.cc
@@ -225,7 +225,7 @@ void TopSites::GetMostVisitedURLs(CancelableRequestConsumer* consumer,
AddRequest(request, consumer);
MostVisitedURLList filtered_urls;
{
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
if (!loaded_) {
// A request came in before we finished loading. Put the request in
// pending_callbacks_ and we'll notify it when we finish loading.
@@ -241,7 +241,7 @@ void TopSites::GetMostVisitedURLs(CancelableRequestConsumer* consumer,
bool TopSites::GetPageThumbnail(const GURL& url,
scoped_refptr<RefCountedBytes>* bytes) {
// WARNING: this may be invoked on any thread.
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
return thread_safe_cache_->GetPageThumbnail(url, bytes);
}
@@ -808,7 +808,7 @@ void TopSites::MoveStateToLoaded() {
MostVisitedURLList filtered_urls;
PendingCallbackSet pending_callbacks;
{
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
if (loaded_)
return; // Don't do anything if we're already loaded.
@@ -830,14 +830,14 @@ void TopSites::MoveStateToLoaded() {
}
void TopSites::ResetThreadSafeCache() {
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
MostVisitedURLList cached;
ApplyBlacklistAndPinnedURLs(cache_->top_sites(), &cached);
thread_safe_cache_->SetTopSites(cached);
}
void TopSites::ResetThreadSafeImageCache() {
- AutoLock lock(lock_);
+ base::AutoLock lock(lock_);
thread_safe_cache_->SetThumbnails(cache_->images());
thread_safe_cache_->RemoveUnreferencedThumbnails();
}
« no previous file with comments | « chrome/browser/history/top_sites.h ('k') | chrome/browser/host_zoom_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698