blob: 62baa78fd29a9b810aa56bb765b23ebdf5cd2544 [file] [log] [blame]
// 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 androidx.annotation.VisibleForTesting;
import org.chromium.base.annotations.NativeMethods;
/**
* 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() {
SearchGeolocationDisclosureTabHelperJni.get().setIgnoreUrlChecksForTesting();
}
@VisibleForTesting
public static void setDayOffsetForTesting(int days) {
SearchGeolocationDisclosureTabHelperJni.get().setDayOffsetForTesting(days);
}
@NativeMethods
interface Natives {
void setIgnoreUrlChecksForTesting();
void setDayOffsetForTesting(int days);
}
}