Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: chrome/android/webapk/libs/runtime_library/src/org/chromium/webapk/lib/runtime_library/WebApkServiceImpl.java

Issue 2014303002: Upstream: Pass Bundle to WebApkServiceImpl constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698