Index: chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java |
diff --git a/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java |
index 575a076437f70c30b0b37ce42c2566426615d1b3..7b49621d8f65a3597b0ce024c21864cb9cad21d6 100644 |
--- a/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java |
+++ b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java |
@@ -34,9 +34,9 @@ public class WebApkServiceFactory extends Service { |
private static final String KEY_SMALL_ICON_ID = "small_icon_id"; |
/** |
- * Key for passing package name of only process allowed to call the service's methods. |
+ * Key for passing uid of only application allowed to call the service's methods. |
*/ |
- private static final String KEY_HOST_BROWSER_PACKAGE = "host_browser_package"; |
+ private static final String KEY_HOST_BROWSER_UID = "host_browser_uid"; |
@Override |
public IBinder onBind(Intent intent) { |
@@ -52,10 +52,10 @@ public class WebApkServiceFactory extends Service { |
webApkClassLoader.loadClass(WEBAPK_SERVICE_IMPL_CLASS_NAME); |
Constructor<?> webApkServiceImplConstructor = |
webApkServiceImplClass.getConstructor(Context.class, Bundle.class); |
- String hostPackageName = WebApkUtils.getHostBrowserPackageName(this); |
+ int hostBrowserUid = WebApkUtils.getHostBrowserUid(this); |
Bundle bundle = new Bundle(); |
bundle.putInt(KEY_SMALL_ICON_ID, R.drawable.app_icon); |
- bundle.putString(KEY_HOST_BROWSER_PACKAGE, hostPackageName); |
+ bundle.putInt(KEY_HOST_BROWSER_UID, hostBrowserUid); |
return (IBinder) webApkServiceImplConstructor.newInstance(new Object[] {this, bundle}); |
} catch (Exception e) { |
Log.w(TAG, "Unable to create WebApkServiceImpl."); |