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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.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: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
index 66752018eecfc134746143cb802819e3320c4f5b..23a0c96e9fb3875e26f5dfa2a5c8e5df6cdb0086 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
@@ -11,7 +11,7 @@
import org.chromium.base.Log;
import org.chromium.chrome.browser.ntp.NewTabPageUma;
import org.chromium.chrome.browser.ntp.snippets.CategoryInt;
-import org.chromium.chrome.browser.ntp.snippets.CategoryStatus.CategoryStatusEnum;
+import org.chromium.chrome.browser.ntp.snippets.CategoryStatus;
import org.chromium.chrome.browser.ntp.snippets.SectionHeader;
import org.chromium.chrome.browser.ntp.snippets.SnippetArticle;
import org.chromium.chrome.browser.ntp.snippets.SnippetArticleViewHolder;
@@ -336,8 +336,8 @@ public int getSuggestionsCount() {
* @param replaceExisting If true, {@code suggestions} replace the current list of suggestions.
* If false, {@code suggestions} are appended to current list of suggestions.
*/
- public void setSuggestions(List<SnippetArticle> suggestions, @CategoryStatusEnum int status,
- boolean replaceExisting) {
+ public void setSuggestions(
+ List<SnippetArticle> suggestions, @CategoryStatus int status, boolean replaceExisting) {
Log.d(TAG, "setSuggestions: previous number of suggestions: %d; replace existing: %b",
mSuggestionsList.getItemCount(), replaceExisting);
if (!SnippetsBridge.isCategoryStatusAvailable(status)) mSuggestionsList.clear();
@@ -403,7 +403,7 @@ public void onFetchStarted() {
}
/** Sets the status for the section. Some statuses can cause the suggestions to be cleared. */
- public void setStatus(@CategoryStatusEnum int status) {
+ public void setStatus(@CategoryStatus int status) {
if (!SnippetsBridge.isCategoryStatusAvailable(status)) mSuggestionsList.clear();
mProgressIndicator.setVisible(SnippetsBridge.isCategoryLoading(status));
}

Powered by Google App Engine
This is Rietveld 408576698