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

Unified Diff: chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java

Issue 1969303002: Upstream WebAPK notification related code (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
Index: chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java
diff --git a/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java
similarity index 53%
copy from net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java
copy to chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java
index 1390b8c0cf77b407ca630d81fec7a863584213e2..968c7294af5b5121169f31e8430d18a2dfd41bec 100644
--- a/net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerService.java
+++ b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java
@@ -2,18 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-package org.chromium.net.test;
+package org.chromium.webapk.shell_apk;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
+import org.chromium.webapk.lib.runtime_library.WebApkServiceImpl;
+
/**
- * A {@link android.app.Service} that creates a new {@link EmbeddedTestServer} when bound.
+ * Implements services offered by the WebAPK to Chrome.
*/
-public class EmbeddedTestServerService extends Service {
+public class WebApkServiceFactory extends Service {
+
@Override
public IBinder onBind(Intent intent) {
- return new EmbeddedTestServerImpl(this);
+ return new WebApkServiceImpl(this, R.drawable.app_icon);
}
}

Powered by Google App Engine
This is Rietveld 408576698