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(); |
} |