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

Unified Diff: chrome/browser/android/banners/app_banner_infobar_delegate_android.cc

Issue 2138973002: Initial CL for talking to the WebAPK server to generate WebAPK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into webapk_builder_impl2 Created 4 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/android/banners/app_banner_infobar_delegate_android.cc
diff --git a/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc b/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc
index 9556e3f9e72a2f97618157daa8ce7a0fb069d005..a8702b1c0ce29308b4ba9a1cff8a7a153581555c 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc
@@ -260,8 +260,9 @@ bool AppBannerInfoBarDelegateAndroid::Accept() {
const std::string& uid = base::GenerateGUID();
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap, info,
- uid, *app_icon_.get(),
+ base::Bind(&ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap,
+ web_contents->GetBrowserContext(), info, uid,
+ *app_icon_.get(),
data_fetcher_->FetchWebappSplashScreenImageCallback(uid)));
SendBannerAccepted(web_contents, "web");

Powered by Google App Engine
This is Rietveld 408576698