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

Side by Side 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: Introduce overload 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.chrome.browser.infobar;
6
7 import org.chromium.base.annotations.CalledByNative;
8 import org.chromium.chrome.browser.ResourceId;
9
10 /**
11 * An infobar to disclose to the user that the default search engine has geoloca tion access by
12 * default.
13 */
14 public class SearchGeolocationDisclosureInfoBar extends InfoBar {
15 @CalledByNative
16 private static InfoBar show(int enumeratedIconId, String message) {
17 int drawableId = ResourceId.mapToDrawableId(enumeratedIconId);
18 return new SearchGeolocationDisclosureInfoBar(drawableId, message);
19 }
20
21 /**
22 * Creates the infobar.
23 * @param iconDrawableId Drawable ID corresponding to the icon that the info bar will show.
24 * @param messageText Message to display in the infobar.
25 */
26 private SearchGeolocationDisclosureInfoBar(int iconDrawableId, String messag eText) {
27 super(iconDrawableId, null, messageText);
28 }
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698