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

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

Issue 580043002: [Android] Prompt with infobar on filename conflict (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed ted's comments Created 6 years, 2 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/DownloadOverwriteInfoBarDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/DownloadOverwriteInfoBarDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/DownloadOverwriteInfoBarDelegate.java
new file mode 100644
index 0000000000000000000000000000000000000000..39d0669244f9d78658b1c1294570b0cebbd1b570
--- /dev/null
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/DownloadOverwriteInfoBarDelegate.java
@@ -0,0 +1,28 @@
+// 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.CalledByNative;
+
+/**
+ * DownloadOverwriteInfoBar JNI methods
+ */
+public class DownloadOverwriteInfoBarDelegate {
+ private DownloadOverwriteInfoBar mInfoBar;
+
+ private DownloadOverwriteInfoBarDelegate() {}
+
+ @CalledByNative
+ public static DownloadOverwriteInfoBarDelegate create() {
+ return new DownloadOverwriteInfoBarDelegate();
+ }
+
+ @CalledByNative
+ private InfoBar showDownloadOverwriteInfoBar(
+ long nativeInfoBar, String fileName, String dirName, String dirFullPath) {
+ mInfoBar = new DownloadOverwriteInfoBar(nativeInfoBar, fileName, dirName, dirFullPath);
+ return mInfoBar;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698