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

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

Issue 1596713003: Discourage creation of Java infobars without InfoBarDelegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 4 years, 11 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/MessageInfoBar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/MessageInfoBar.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/MessageInfoBar.java
deleted file mode 100644
index 1c1597f7d3c5860719d40b778b3dc4323b075d16..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/MessageInfoBar.java
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2013 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;
-
-
-/**
- * A simple infobar that contains a message and a close icon on the right side.
- * This is used only in the context of Java code and is not associated with any native
- * InfoBarDelegate.
- *
- * TODO(newt): merge this into InfoBar.java
- */
-public class MessageInfoBar extends InfoBar {
-
- /**
- * Creates an infobar with a message and a close button.
- * @param title the text displayed in the infobar
- */
- public MessageInfoBar(CharSequence title) {
- this(null, 0, title);
- }
-
- /**
- * Creates an infobar with an icon, a message and a close button.
- * @param listener A listener to be notified when the infobar is dismissed, or null.
- * @param iconResourceId The icon to display in the infobar, or 0 if no icon should be shown.
- * @param title The text to display in the infobar.
- */
- public MessageInfoBar(InfoBarListeners.Dismiss listener, int iconResourceId,
- CharSequence title) {
- super(listener, iconResourceId, null, title);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698