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

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/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
new file mode 100644
index 0000000000000000000000000000000000000000..9bc602db7669e8b66fb23266a35506ef75c806ff
--- /dev/null
+++ b/chrome/android/webapk/shell_apk/src/org/chromium/webapk/shell_apk/WebApkServiceFactory.java
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+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;
+
+/**
+ * Implements services offered by the WebAPK to Chrome.
+ */
+public class WebApkServiceFactory extends Service {
+
+ @Override
+ public IBinder onBind(Intent intent) {
+ return new WebApkServiceImpl(this, R.drawable.app_icon);
+ }
+}
« no previous file with comments | « chrome/android/webapk/shell_apk/DEPS ('k') | chrome/browser/notifications/notification_platform_bridge_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698