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

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: 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 ba518910347409fa59d5ea72bcd26410deed79a9..e613b83c9a6b533047a5ff12ded5582dfcf404b2 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::AddShortcutInBackgroundWithSkBitmap, info,
- uid, *app_icon_.get(),
+ base::Bind(&ShortcutHelper::AddShortcutInBackgroundWithSkBitmap,
+ 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