| 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 a206314e8c9cbd353a61f8dec6534d98bd551d6c..9b5b821bab6831f69468f3f2e4a2e3639077d901 100644
|
| --- a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
|
| +++ b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.cc
|
| @@ -28,13 +28,17 @@ using content::Manifest;
|
| jlong Initialize(JNIEnv* env,
|
| const JavaParamRef<jobject>& obj,
|
| const JavaParamRef<jobject>& java_web_contents,
|
| - jint ideal_splash_image_size_in_dp,
|
| - jint ideal_icon_size_in_dp) {
|
| + int ideal_icon_size_in_dp,
|
| + int minimum_icon_size_in_dp,
|
| + int ideal_splash_image_size_in_dp,
|
| + int minimum_splash_image_size_in_dp) {
|
| content::WebContents* web_contents =
|
| content::WebContents::FromJavaWebContents(java_web_contents);
|
| AddToHomescreenDialogHelper* add_to_homescreen_helper =
|
| - new AddToHomescreenDialogHelper(env, obj, web_contents,
|
| - ideal_splash_image_size_in_dp, ideal_icon_size_in_dp);
|
| + new AddToHomescreenDialogHelper(
|
| + env, obj, web_contents,
|
| + ideal_icon_size_in_dp, minimum_icon_size_in_dp,
|
| + ideal_splash_image_size_in_dp, minimum_splash_image_size_in_dp);
|
| return reinterpret_cast<intptr_t>(add_to_homescreen_helper);
|
| }
|
|
|
| @@ -42,12 +46,16 @@ AddToHomescreenDialogHelper::AddToHomescreenDialogHelper(
|
| JNIEnv* env,
|
| jobject obj,
|
| content::WebContents* web_contents,
|
| + int ideal_icon_size_in_dp,
|
| + int minimum_icon_size_in_dp,
|
| int ideal_splash_image_size_in_dp,
|
| - int ideal_icon_size_in_dp)
|
| + int minimum_splash_image_size_in_dp)
|
| : add_shortcut_pending_(false),
|
| data_fetcher_(new AddToHomescreenDataFetcher(web_contents,
|
| - ideal_splash_image_size_in_dp,
|
| ideal_icon_size_in_dp,
|
| + minimum_icon_size_in_dp,
|
| + ideal_splash_image_size_in_dp,
|
| + minimum_splash_image_size_in_dp,
|
| this)) {
|
| java_ref_.Reset(env, obj);
|
| }
|
|
|