| 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 bc55cb26db57533d4050e4ae37e0a09bc64cecdf..a55b3e481bebf23c7f8a0e7721bbcb4b8c920830 100644
|
| --- a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
|
| +++ b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
|
| @@ -39,12 +39,14 @@ AddToHomescreenDialogHelper::AddToHomescreenDialogHelper(
|
| jobject obj,
|
| content::WebContents* web_contents)
|
| : add_shortcut_pending_(false),
|
| - data_fetcher_(new AddToHomescreenDataFetcher(web_contents,
|
| + data_fetcher_(new AddToHomescreenDataFetcher(
|
| + web_contents,
|
| ShortcutHelper::GetIdealHomescreenIconSizeInDp(),
|
| ShortcutHelper::GetMinimumHomescreenIconSizeInDp(),
|
| ShortcutHelper::GetIdealSplashImageSizeInDp(),
|
| ShortcutHelper::GetMinimumSplashImageSizeInDp(),
|
| - this)) {
|
| + this)),
|
| + browser_context_(web_contents->GetBrowserContext()) {
|
| java_ref_.Reset(env, obj);
|
| }
|
|
|
| @@ -122,8 +124,8 @@ void AddToHomescreenDialogHelper::AddShortcut(const ShortcutInfo& info,
|
| const std::string& uid = base::GenerateGUID();
|
| content::BrowserThread::PostTask(
|
| content::BrowserThread::IO, FROM_HERE,
|
| - base::Bind(&ShortcutHelper::AddShortcutInBackgroundWithSkBitmap, info,
|
| - uid, icon,
|
| + base::Bind(&ShortcutHelper::AddShortcutInBackgroundWithSkBitmap,
|
| + browser_context_, info, uid, icon,
|
| data_fetcher_->FetchSplashScreenImageCallback(uid)));
|
| }
|
|
|
|
|