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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/ClearNotificationAlarmReceiver.java

Issue 2108983002: Use ContextUtils in PhysicalWeb (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests to use new methods Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.physicalweb; 5 package org.chromium.chrome.browser.physicalweb;
6 6
7 import android.content.BroadcastReceiver; 7 import android.content.BroadcastReceiver;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 10
11 import org.chromium.base.Log; 11 import org.chromium.base.Log;
12 12
13 /** 13 /**
14 * A broadcast receiver that clears the UrlManager's notification. 14 * A broadcast receiver that clears the UrlManager's notification.
15 * This class cannot make native calls because it may not be loaded when the 15 * This class cannot make native calls because it may not be loaded when the
16 * alarm fires. 16 * alarm fires.
17 */ 17 */
18 public class ClearNotificationAlarmReceiver extends BroadcastReceiver { 18 public class ClearNotificationAlarmReceiver extends BroadcastReceiver {
19 private static final String TAG = "PhysicalWeb"; 19 private static final String TAG = "PhysicalWeb";
20 20
21 @Override 21 @Override
22 public void onReceive(Context context, Intent intent) { 22 public void onReceive(Context context, Intent intent) {
23 Log.d(TAG, "Running NotificationCleanupAlarmReceiver"); 23 Log.d(TAG, "Running NotificationCleanupAlarmReceiver");
24 UrlManager.getInstance(context).clearNotification(); 24 UrlManager.getInstance().clearNotification();
25 } 25 }
26 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698