Index: chrome/android/java/src/org/chromium/chrome/browser/SearchGeolocationDisclosureTabHelper.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/SearchGeolocationDisclosureTabHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/SearchGeolocationDisclosureTabHelper.java |
new file mode 100644 |
index 0000000000000000000000000000000000000000..316dd59aaa327e3bd25e39de1673a3d321f07d54 |
--- /dev/null |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/SearchGeolocationDisclosureTabHelper.java |
@@ -0,0 +1,26 @@ |
+// Copyright 2017 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; |
+ |
+import org.chromium.base.VisibleForTesting; |
+ |
+/** |
+ * Helper that shows the search geolocation disclosure when required. This class currently is only |
+ * used to set static test variables in the native code. |
+ */ |
+public class SearchGeolocationDisclosureTabHelper { |
+ @VisibleForTesting |
+ public static void setIgnoreUrlChecksForTesting() { |
+ nativeSetIgnoreUrlChecksForTesting(); |
+ } |
+ |
+ @VisibleForTesting |
+ public static void setDayOffsetForTesting(int days) { |
+ nativeSetDayOffsetForTesting(days); |
+ } |
+ |
+ private static native void nativeSetIgnoreUrlChecksForTesting(); |
+ private static native void nativeSetDayOffsetForTesting(int days); |
+} |