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

Unified Diff: chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h

Issue 1261143004: Implement manifest icon downloader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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/webapps/add_to_homescreen_data_fetcher.h
diff --git a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
index d3af3ac1c0f8b7198f3d36d439046c2de4646e38..18a41733c506c08bb216c30d5ebe40e3b21234b9 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
+++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h
@@ -82,13 +82,9 @@ class AddToHomescreenDataFetcher
void CreateLauncherIcon(
const favicon_base::FaviconRawBitmapResult& bitmap_result);
- // Callback run after an attempt to download manifest icon has been made. May
- // kick off the download of a favicon if it failed.
- void OnManifestIconFetched(int id,
- int http_status_code,
- const GURL& url,
- const std::vector<SkBitmap>& bitmaps,
- const std::vector<gfx::Size>& sizes);
+ // Callback run after an attempt to download manifest icon has been made. May
+ // kick off the download of a favicon if it failed (i.e. the bitmap is empty).
+ void OnManifestIconFetched(const SkBitmap& icon);
// Notifies the observer that the shortcut data is all available.
void NotifyObserver(const SkBitmap& icon);

Powered by Google App Engine
This is Rietveld 408576698