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

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

Issue 2000433002: Remove unused DataReductionProxyInfoBar and related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: obsolete enum value Created 4 years, 7 months 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/DataReductionProxyInfoBarDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java
deleted file mode 100644
index 6e7178a33bbe3e0c1dc610546f13fdbbb5d6ca9f..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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;
-import org.chromium.content_public.browser.WebContents;
-
-/**
- * Provides JNI methods for DataReductionProxyInfoBars.
- */
-public class DataReductionProxyInfoBarDelegate {
- /**
- * Launches the {@link InfoBar}.
- * @param webContents The {@link WebContents} in which to launch the {@link InfoBar}.
- */
- static void launch(WebContents webContents, String linkUrl) {
- nativeLaunch(webContents, linkUrl);
- }
-
- private DataReductionProxyInfoBarDelegate() {
- }
-
- @CalledByNative
- public static DataReductionProxyInfoBarDelegate create() {
- return new DataReductionProxyInfoBarDelegate();
- }
-
- /**
- * Creates and begins the process for showing a DataReductionProxyInfoBarDelegate.
- * @param enumeratedIconId ID corresponding to the icon that will be shown for the InfoBar.
- * The ID must have been mapped using the ResourceMapper class before
- * passing it to this function.
- */
- @CalledByNative
- InfoBar showDataReductionProxyInfoBar(int enumeratedIconId) {
- int drawableId = ResourceId.mapToDrawableId(enumeratedIconId);
- DataReductionProxyInfoBar infoBar = new DataReductionProxyInfoBar(drawableId);
- return infoBar;
- }
-
- private static native void nativeLaunch(WebContents webContents, String linkUrl);
-}

Powered by Google App Engine
This is Rietveld 408576698