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

Unified Diff: components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java

Issue 2792583002: 📱 Simplify naming of generated java enums IntDefs (Closed)
Patch Set: rebase Created 3 years, 8 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: components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java
diff --git a/components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java b/components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java
index ec978e4fe7101a2f2cb73f66d76e3eaac16867d6..c5209280f8ee640182a56476200f510c14af9032 100644
--- a/components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java
+++ b/components/offline_items_collection/core/android/java/src/org/chromium/components/offline_items_collection/OfflineItemBridge.java
@@ -6,8 +6,6 @@
import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
-import org.chromium.components.offline_items_collection.OfflineItemFilter.OfflineItemFilterEnum;
-import org.chromium.components.offline_items_collection.OfflineItemState.OfflineItemStateEnum;
import java.util.ArrayList;
@@ -41,10 +39,10 @@ private OfflineItemBridge() {}
@CalledByNative
private static OfflineItem createOfflineItemAndMaybeAddToList(ArrayList<OfflineItem> list,
String nameSpace, String id, String title, String description,
- @OfflineItemFilterEnum int filter, boolean isTransient, long totalSizeBytes,
+ @OfflineItemFilter int filter, boolean isTransient, long totalSizeBytes,
boolean externallyRemoved, long creationTimeMs, long lastAccessedTimeMs,
boolean isOpenable, String pageUrl, String originalUrl, boolean isOffTheRecord,
- @OfflineItemStateEnum int state, boolean isResumable, boolean allowMetered,
+ @OfflineItemState int state, boolean isResumable, boolean allowMetered,
long receivedBytes, int percentCompleted, long timeRemainingMs) {
OfflineItem item = new OfflineItem();
item.id.namespace = nameSpace;
@@ -71,4 +69,4 @@ private static OfflineItem createOfflineItemAndMaybeAddToList(ArrayList<OfflineI
if (list != null) list.add(item);
return item;
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698