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

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

Issue 2655263003: [NTP] Remove the ScrollView version of the NTP. (Closed)
Patch Set: Cleaned up some more. 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/NewTabPage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java
index 75c3f1966c2e677f6797af40e281b2bce06b7a16..310308dadf1e8c64053816e73b56996e7bc9cceb 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java
@@ -36,7 +36,6 @@ import org.chromium.chrome.browser.ntp.LogoBridge.Logo;
import org.chromium.chrome.browser.ntp.LogoBridge.LogoObserver;
import org.chromium.chrome.browser.ntp.NewTabPageView.NewTabPageManager;
import org.chromium.chrome.browser.ntp.snippets.SnippetsBridge;
-import org.chromium.chrome.browser.ntp.snippets.SnippetsConfig;
import org.chromium.chrome.browser.ntp.snippets.SuggestionsSource;
import org.chromium.chrome.browser.profiles.MostVisitedSites;
import org.chromium.chrome.browser.profiles.MostVisitedSites.MostVisitedURLsObserver;
@@ -424,9 +423,7 @@ public class NewTabPage
mTabModelSelector = tabModelSelector;
Profile profile = tab.getProfile();
- if (SnippetsConfig.isEnabled()) {
- mSnippetsBridge = new SnippetsBridge(profile);
- }
+ mSnippetsBridge = new SnippetsBridge(profile);
SuggestionsNavigationDelegateImpl navigationDelegate =
new SuggestionsNavigationDelegateImpl(activity, profile, tab, tabModelSelector);
@@ -534,11 +531,6 @@ public class NewTabPage
return mNewTabPageView;
}
- /** @return whether the NTP is using the cards UI. */
- public boolean isCardsUiEnabled() {
- return SnippetsConfig.isEnabled();
- }
-
/**
* Updates whether the NewTabPage should animate on URL focus changes.
* @param disable Whether to disable the animations.

Powered by Google App Engine
This is Rietveld 408576698