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

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

Issue 2408643002: Remove unused pre-material NTP styling. (Closed)
Patch Set: Created 4 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/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 e9354ec17305f271b238ae24c4afe5433f484b20..4d87994d705932cb0732a4e92adad002d9146741 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
@@ -678,7 +678,7 @@ public class NewTabPage
mProfile = tab.getProfile();
mTitle = activity.getResources().getString(R.string.button_new_tab);
- mBackgroundColor = NtpStyleUtils.getBackgroundColorResource(activity.getResources(), false);
+ mBackgroundColor = ApiCompatibilityUtils.getColor(activity.getResources(), R.color.ntp_bg);
mThemeColor = ApiCompatibilityUtils.getColor(
activity.getResources(), R.color.default_primary_color);
TemplateUrlService.getInstance().addObserver(this);
@@ -985,9 +985,7 @@ public class NewTabPage
@Override
public int getThemeColor() {
- return isLocationBarShownInNTP()
- ? NtpStyleUtils.getBackgroundColorResource(mActivity.getResources(), false)
- : mThemeColor;
+ return isLocationBarShownInNTP() ? mBackgroundColor : mThemeColor;
}
@Override

Powered by Google App Engine
This is Rietveld 408576698