| 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..913df7209591411aa0a2b327008bdda1bd3fcfa7
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/SearchGeolocationDisclosureTabHelper.java
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2016 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 setIgnoreUrlChecks(boolean ignore) {
|
| + nativeSetIgnoreUrlChecks(ignore);
|
| + }
|
| +
|
| + private static native void nativeSetIgnoreUrlChecks(boolean ignore);
|
| +}
|
|
|