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

Unified Diff: chrome/browser/android/webapps/add_to_homescreen_dialog_helper.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/webapps/add_to_homescreen_dialog_helper.cc
diff --git a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
index ba6732f42240274e61db5447ba35c5c9549c86bc..fb6d01471e36d99d16e57035d6d24c8c24fe6e60 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
+++ b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
@@ -44,7 +44,8 @@ AddToHomescreenDialogHelper::AddToHomescreenDialogHelper(
ShortcutHelper::GetMinimumHomescreenIconSizeInDp(),
ShortcutHelper::GetIdealSplashImageSizeInDp(),
ShortcutHelper::GetMinimumSplashImageSizeInDp(),
- this)) {
+ this)),
+ browser_context_(web_contents->GetBrowserContext()) {
java_ref_.Reset(env, obj);
}
@@ -122,8 +123,8 @@ void AddToHomescreenDialogHelper::AddShortcut(const ShortcutInfo& info,
const std::string& uid = base::GenerateGUID();
content::BrowserThread::PostTask(
content::BrowserThread::IO, FROM_HERE,
- base::Bind(&ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap, info,
- uid, icon,
+ base::Bind(&ShortcutHelper::AddToLauncherInBackgroundWithSkBitmap,
+ browser_context_, info, uid, icon,
data_fetcher_->FetchSplashScreenImageCallback(uid)));
}

Powered by Google App Engine
This is Rietveld 408576698