Index: chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java |
diff --git a/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java b/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java |
index 793b8aa0fbd2c8221ac3e331d861e6fd50343b4c..5201b2c721ab21c834f3e82f52dae8c5c83d1ec1 100644 |
--- a/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java |
+++ b/chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java |
@@ -7,12 +7,15 @@ package org.chromium.webapk.lib.runtime_library; |
import android.app.Notification; |
import android.app.NotificationManager; |
import android.content.Context; |
+import android.os.Bundle; |
/** |
* Implements services offered by the WebAPK to Chrome. |
*/ |
public class WebApkServiceImpl extends IWebApkApi.Stub { |
+ public static final String KEY_SMALL_ICON_ID = "small_icon_id"; |
+ |
private static final String TAG = "WebApkServiceImpl"; |
private final Context mContext; |
@@ -25,11 +28,11 @@ public class WebApkServiceImpl extends IWebApkApi.Stub { |
/** |
* Creates an instance of WebApkServiceImpl. |
* @param context |
- * @param smallIconId Id of icon to represent notifications in status bar. |
+ * @param bundle Bundle with additional constructor parameters. |
*/ |
- public WebApkServiceImpl(Context context, int smallIconId) { |
+ public WebApkServiceImpl(Context context, Bundle bundle) { |
mContext = context; |
- mSmallIconId = smallIconId; |
+ mSmallIconId = bundle.getInt(KEY_SMALL_ICON_ID); |
} |
@Override |