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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/FakeSuggestionsSource.java

Issue 2607333002: [NTP Suggestions] Updating the suggestions before going below the fold. (Closed)
Patch Set: Fix a unit-test Created 3 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/ntp/snippets/FakeSuggestionsSource.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/FakeSuggestionsSource.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/FakeSuggestionsSource.java
index 2a60c30e905f768eff09b9cee8939e298215381d..63dcaf2c64b2a33b5f64b4a74864841e506ddb29 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/FakeSuggestionsSource.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/FakeSuggestionsSource.java
@@ -168,6 +168,7 @@ public class FakeSuggestionsSource implements SuggestionsSource {
return Collections.emptyList();
}
List<SnippetArticle> result = mSuggestions.get(category);
- return result == null ? Collections.<SnippetArticle>emptyList() : result;
+ return result == null ? Collections.<SnippetArticle>emptyList()
+ : new ArrayList<SnippetArticle>(result);
}
-}
+}

Powered by Google App Engine
This is Rietveld 408576698