| 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 52e454927ee79e5a6aa16039685ed756ecf44db0..a1e7c812cae7a626809b88d7c73452367374ae58 100644
|
| --- a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
|
| +++ b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
|
| @@ -119,13 +119,17 @@ void AddToHomescreenDialogHelper::AddShortcut(const ShortcutInfo& info,
|
| return;
|
| add_shortcut_pending_ = false;
|
|
|
| + content::WebContents* web_contents = data_fetcher_->web_contents();
|
| + if (!web_contents)
|
| + return;
|
| +
|
| RecordAddToHomescreen();
|
|
|
| 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,
|
| + web_contents->GetBrowserContext(), info, uid, icon,
|
| data_fetcher_->FetchSplashScreenImageCallback(uid)));
|
| }
|
|
|
|
|