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

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

Issue 2606933003: Remove nearby URL cache from the PW UrlManager (Closed)
Patch Set: Rebase Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java
index 7bfa0a089795132137adc08f5736fd116f2a0d71..bc4ec0667c33490316c0a8d335fc23de616ed9d8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java
@@ -61,16 +61,7 @@ public class PhysicalWeb {
LocationUtils locationUtils = LocationUtils.getInstance();
if (locationUtils.hasAndroidLocationPermission()
&& locationUtils.isSystemLocationSettingEnabled()) {
- new NearbyBackgroundSubscription(NearbySubscription.SUBSCRIBE, new Runnable() {
- @Override
- public void run() {
- // We need to clear the list of nearby URLs so that they can be repopulated by
- // the new subscription, but we don't know whether we are already subscribed, so
- // we need to pass a callback so that we can clear as soon as we are
- // resubscribed.
- UrlManager.getInstance().clearNearbyUrls();
- }
- }).run();
+ new NearbyBackgroundSubscription(NearbySubscription.SUBSCRIBE).run();
}
}
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/physicalweb/UrlManager.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698