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

Unified Diff: ios/chrome/browser/suggestions/suggestions_service_factory.mm

Issue 1156003008: Decode ImageManager cached images on demand. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix iOS build; run 'git cl format' Created 5 years, 6 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 | « components/suggestions/image_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/suggestions/suggestions_service_factory.mm
diff --git a/ios/chrome/browser/suggestions/suggestions_service_factory.mm b/ios/chrome/browser/suggestions/suggestions_service_factory.mm
index bc08640022a67a5c7ee7a91f0cbd9cdcf56f6715..10365afddd35f9e14661c9cbb330ef328a128332 100644
--- a/ios/chrome/browser/suggestions/suggestions_service_factory.mm
+++ b/ios/chrome/browser/suggestions/suggestions_service_factory.mm
@@ -68,8 +68,9 @@ KeyedService* SuggestionsServiceFactory::BuildServiceInstanceFor(
new leveldb_proto::ProtoDatabaseImpl<ImageData>(background_task_runner));
scoped_ptr<ImageFetcher> image_fetcher(new ImageFetcherImpl(
browser_state->GetRequestContext(), sequenced_worker_pool));
- scoped_ptr<ImageManager> thumbnail_manager(
- new ImageManager(image_fetcher.Pass(), db.Pass(), database_dir));
+ scoped_ptr<ImageManager> thumbnail_manager(new ImageManager(
+ image_fetcher.Pass(), db.Pass(), database_dir,
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB)));
stuartmorgan 2015/06/10 18:18:17 This needs to use WebThread, not BrowserThread. I'
Sami 2015/06/10 18:40:15 BrowserThread::GetMessageLoopProxyForThread return
return new SuggestionsService(
browser_state->GetRequestContext(), suggestions_store.Pass(),
thumbnail_manager.Pass(), blacklist_store.Pass());
« no previous file with comments | « components/suggestions/image_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698