Chromium Code Reviews| Index: chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h |
| diff --git a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h |
| index 296011b65785f4a9bf31a87b6829b72e01154a70..66899b2809b138746f38e8db35ad4935125679f8 100644 |
| --- a/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h |
| +++ b/chrome/browser/android/webapps/add_to_homescreen_dialog_helper.h |
| @@ -33,24 +33,17 @@ class AddToHomescreenDialogHelper : |
| jobject obj, |
| content::WebContents* web_contents); |
| - // Called by the Java counterpart to destroy its native half. |
| - void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| - |
| // Registers JNI hooks. |
|
dominickn
2016/08/24 22:58:16
Nit: I would order the static method above the con
pkotwicz
2016/08/24 23:14:50
Done.
|
| static bool RegisterAddToHomescreenDialogHelper(JNIEnv* env); |
| + // Called by the Java counterpart to destroy its native half. |
| + void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); |
| + |
| // Adds a shortcut to the current URL to the Android home screen. |
| void AddShortcut(JNIEnv* env, |
| const base::android::JavaParamRef<jobject>& obj, |
| const base::android::JavaParamRef<jstring>& title); |
| - // AddToHomescreenDataFetcher::Observer |
| - void OnUserTitleAvailable(const base::string16& user_title) override; |
| - void OnDataAvailable(const ShortcutInfo& info, const SkBitmap& icon) override; |
| - SkBitmap FinalizeLauncherIconInBackground(const SkBitmap& icon, |
| - const GURL& url, |
| - bool* is_generated) override; |
| - |
| private: |
| virtual ~AddToHomescreenDialogHelper(); |
|
dominickn
2016/08/24 22:58:16
Just realised that this has a private virtual dest
pkotwicz
2016/08/24 23:14:50
Making the destructor private seems like a common
dominickn
2016/08/25 00:16:04
I'm not fussed about the destructor being private
|
| @@ -60,6 +53,13 @@ class AddToHomescreenDialogHelper : |
| void RecordAddToHomescreen(); |
| + // AddToHomescreenDataFetcher::Observer: |
| + void OnUserTitleAvailable(const base::string16& user_title) override; |
| + void OnDataAvailable(const ShortcutInfo& info, const SkBitmap& icon) override; |
| + SkBitmap FinalizeLauncherIconInBackground(const SkBitmap& icon, |
| + const GURL& url, |
| + bool* is_generated) override; |
| + |
| // Points to the Java object. |
| base::android::ScopedJavaGlobalRef<jobject> java_ref_; |