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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworksTracker.java

Issue 2880663004: Adding visible networks to the Geolocation Header. (Closed)
Patch Set: Adding visible networks to the Geolocation Header. Created 3 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/java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworksTracker.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworksTracker.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworksTracker.java
new file mode 100644
index 0000000000000000000000000000000000000000..4d4eeebf1d53bd52710848584e9aecb693d00bd6
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/geo/VisibleNetworksTracker.java
@@ -0,0 +1,35 @@
+// Copyright 2015 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.chrome.browser.omnibox.geo;
+
+import android.content.Context;
+
+import org.chromium.base.VisibleForTesting;
+import org.chromium.base.annotations.SuppressFBWarnings;
+
+/**
+ * TODO: Replace with actual one.
+ */
+class VisibleNetworksTracker {
lbargu 2017/05/16 16:34:52 Ignore changes to this file. See https://coderevie
+ private static VisibleNetworks sVisibleNetworksForTesting;
+ private static boolean sUseVisibleNetworksForTesting;
+
+ static VisibleNetworks getLastKnownVisibleNetworks(Context context) {
+ if (sUseVisibleNetworksForTesting) return sVisibleNetworksForTesting;
+ // TODO: Implement
+ return null;
+ }
+
+ @SuppressFBWarnings("LI_LAZY_INIT_UPDATE_STATIC")
+ static void refreshLastKnownVisibleNetworks(Context context, long maxAge) {
+ // TODO
+ }
+
+ @VisibleForTesting
+ static void setVisibleNetworksForTesting(VisibleNetworks visibleNetworksForTesting) {
+ sVisibleNetworksForTesting = visibleNetworksForTesting;
+ sUseVisibleNetworksForTesting = true;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698