| OLD | NEW |
| 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 } |
| OLD | NEW |