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

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

Issue 1845233002: Store standalone web app data in WebappDataStorage as well as the homescreen intent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@notification-deep-linking
Patch Set: Final nit Created 4 years, 8 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.cc
diff --git a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
index 2a3f1986c0d32a6d1cc077901c0343b7a1cb4036..7c8803f0a725e430dd36969460239bb1163d9dc2 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
+++ b/chrome/browser/android/webapps/add_to_homescreen_data_fetcher.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/android/webapps/add_to_homescreen_data_fetcher.h"
+#include "base/bind.h"
+#include "base/callback.h"
#include "base/location.h"
#include "base/strings/string16.h"
#include "base/task/cancelable_task_tracker.h"
@@ -163,15 +165,11 @@ AddToHomescreenDataFetcher::~AddToHomescreenDataFetcher() {
DCHECK(!weak_observer_);
}
-void AddToHomescreenDataFetcher::FetchSplashScreenImage(
+base::Closure AddToHomescreenDataFetcher::FetchSplashScreenImageCallback(
const std::string& webapp_id) {
- ShortcutHelper::FetchSplashScreenImage(
- web_contents(),
- splash_screen_url_,
- ideal_splash_image_size_in_dp_,
- minimum_splash_image_size_in_dp_,
- webapp_id,
- shortcut_info_.url.spec());
+ return base::Bind(&ShortcutHelper::FetchSplashScreenImage, web_contents(),
+ splash_screen_url_, ideal_splash_image_size_in_dp_,
+ minimum_splash_image_size_in_dp_, webapp_id);
}
void AddToHomescreenDataFetcher::FetchFavicon() {

Powered by Google App Engine
This is Rietveld 408576698