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

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

Issue 901203003: Redo how AppBannerInfoBars are created and stored (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving init before the early return so that restored tabs also get them Created 5 years, 10 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/AppBannerInfoBarDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/AppBannerInfoBarDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/AppBannerInfoBarDelegate.java
deleted file mode 100644
index 9573af6630a06c0e507ffb7c809c8b4d61c16747..0000000000000000000000000000000000000000
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/AppBannerInfoBarDelegate.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2015 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 android.graphics.Bitmap;
-
-import org.chromium.base.CalledByNative;
-
-/**
- * Handles creation of AppBannerInfoBars.
- */
-public class AppBannerInfoBarDelegate {
- private AppBannerInfoBarDelegate() {
- }
-
- @CalledByNative
- private static AppBannerInfoBarDelegate create() {
- return new AppBannerInfoBarDelegate();
- }
-
- @CalledByNative
- private InfoBar showInfoBar(
- long nativeInfoBar, String appTitle, Bitmap iconBitmap, String buttonText, String url) {
- return new AppBannerInfoBar(nativeInfoBar, appTitle, iconBitmap, buttonText, url);
- }
-}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/infobar/AppBannerInfoBar.java ('k') | chrome/app/generated_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698