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

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

Issue 2593393002: Add some integration tests for the search geolocation disclosure. (Closed)
Patch Set: Created 4 years 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/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);
+}
« no previous file with comments | « no previous file | chrome/android/java_sources.gni » ('j') | chrome/browser/android/search_geolocation_disclosure_tab_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698