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

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

Issue 2475213002: Update the Google Search geolocation disclosure to make it more obvious. (Closed)
Patch Set: Feedback Created 4 years, 1 month 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/infobar/SearchGeolocationDisclosureInfoBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java
new file mode 100644
index 0000000000000000000000000000000000000000..ec46847867ac756befc965867f74238d2040e8c7
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/SearchGeolocationDisclosureInfoBar.java
@@ -0,0 +1,29 @@
+// 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.infobar;
+
+import org.chromium.base.annotations.CalledByNative;
+import org.chromium.chrome.browser.ResourceId;
+
+/**
+ * An infobar to disclose to the user that the default search engine has geolocation access by
+ * default.
+ */
+public class SearchGeolocationDisclosureInfoBar extends InfoBar {
+ @CalledByNative
+ private static InfoBar show(int enumeratedIconId, String message) {
+ int drawableId = ResourceId.mapToDrawableId(enumeratedIconId);
+ return new SearchGeolocationDisclosureInfoBar(drawableId, message);
+ }
+
+ /**
+ * Creates the infobar.
+ * @param iconDrawableId Drawable ID corresponding to the icon that the infobar will show.
+ * @param messageText Message to display in the infobar.
+ */
+ private SearchGeolocationDisclosureInfoBar(int iconDrawableId, String messageText) {
+ super(iconDrawableId, null, messageText);
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698