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

Unified Diff: chrome/browser/search/suggestions/suggestions_service.cc

Issue 392983007: [Suggestions] Make ThumbnailManager implement ImageManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 5 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/search/suggestions/suggestions_service.cc
diff --git a/chrome/browser/search/suggestions/suggestions_service.cc b/chrome/browser/search/suggestions/suggestions_service.cc
index 46ca336383130b2fd9a20eaf948d8c38fa358bcf..60e7dbe66543a2dc8bc059c99124e8e18be39fc6 100644
--- a/chrome/browser/search/suggestions/suggestions_service.cc
+++ b/chrome/browser/search/suggestions/suggestions_service.cc
@@ -119,7 +119,7 @@ std::string GetBlacklistUrlPrefix() {
SuggestionsService::SuggestionsService(
net::URLRequestContextGetter* url_request_context,
scoped_ptr<SuggestionsStore> suggestions_store,
- scoped_ptr<ThumbnailManager> thumbnail_manager,
+ scoped_ptr<ImageManager> thumbnail_manager,
scoped_ptr<BlacklistStore> blacklist_store)
: suggestions_store_(suggestions_store.Pass()),
blacklist_store_(blacklist_store.Pass()),
@@ -187,7 +187,7 @@ void SuggestionsService::FetchSuggestionsDataNoTimeout(
void SuggestionsService::GetPageThumbnail(
const GURL& url,
base::Callback<void(const GURL&, const SkBitmap*)> callback) {
- thumbnail_manager_->GetPageThumbnail(url, callback);
+ thumbnail_manager_->GetImageForURL(url, callback);
}
void SuggestionsService::BlacklistURL(
@@ -315,7 +315,7 @@ void SuggestionsService::OnURLFetchComplete(const net::URLFetcher* source) {
suggestions_store_->ClearSuggestions();
} else if (suggestions.ParseFromString(suggestions_data)) {
LogResponseState(RESPONSE_VALID);
- thumbnail_manager_->InitializeThumbnailMap(suggestions);
+ thumbnail_manager_->Initialize(suggestions);
suggestions_store_->StoreSuggestions(suggestions);
} else {
LogResponseState(RESPONSE_INVALID);

Powered by Google App Engine
This is Rietveld 408576698