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

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_impl22_no_content Created 4 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/shortcut_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 03a1390dcb50e2834f59e693f518c804ddc3a2f8..643eb4cae2aeb8bd1c44abd0cfe4658aac31f0ad 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.cc
@@ -262,8 +262,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");
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/android/shortcut_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698