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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java

Issue 2755003003: Add Interstitial for user consent (Closed)
Patch Set: Matts Nits 1 Created 3 years, 9 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/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java
index d18e18f141f948abd9d86ee90db7668874a25719..24dcd7f0e4b2f63a588174c43aee7ac6f56869aa 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebBroadcastService.java
@@ -70,6 +70,13 @@ public class PhysicalWebBroadcastService extends Service {
}
};
+ public static void startBroadcastService(String url) {
Ted C 2017/03/20 21:05:59 non-private apis should have javadoc as a general
iankc 2017/03/20 21:32:22 Done.
+ Context context = ContextUtils.getApplicationContext();
+ Intent intent = new Intent(context, PhysicalWebBroadcastService.class);
+ intent.putExtra(DISPLAY_URL_KEY, url);
+ context.startService(intent);
+ }
+
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
String displayUrl = fetchDisplayUrl(intent);

Powered by Google App Engine
This is Rietveld 408576698