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

Unified Diff: chrome/browser/android/thumbnail/thumbnail_cache.cc

Issue 1124333002: Refactor TabContentManager to async create ThumbnailCache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: chrome/browser/android/thumbnail/thumbnail_cache.cc
diff --git a/chrome/browser/android/thumbnail/thumbnail_cache.cc b/chrome/browser/android/thumbnail/thumbnail_cache.cc
index 130385de8c0f1c1fce774c6a1dded74f5fd86578..b9c403bd6755b5d2402e3227fbaa91459f5161cd 100644
--- a/chrome/browser/android/thumbnail/thumbnail_cache.cc
+++ b/chrome/browser/android/thumbnail/thumbnail_cache.cc
@@ -127,9 +127,7 @@ ThumbnailCache::ThumbnailCache(const std::string& disk_cache_path_str,
cache_(default_cache_size),
approximation_cache_(approximation_cache_size),
ui_resource_provider_(NULL),
- weak_factory_(this) {
- DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
-}
+ weak_factory_(this) {}
ThumbnailCache::~ThumbnailCache() {
SetUIResourceProvider(NULL);

Powered by Google App Engine
This is Rietveld 408576698