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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java

Issue 1657853002: Naming fixes to bottom bar color extra (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2623
Patch Set: Created 4 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/customtabs/CustomTabIntentDataProvider.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
index ce5f1a586c8e37cac197bfe7d978883e34404be0..958835bffce6d6a4cbd3f465328a2df9b0974d27 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
@@ -76,7 +76,7 @@ public class CustomTabIntentDataProvider {
mSession = IntentUtils.safeGetBinderExtra(intent, CustomTabsIntent.EXTRA_SESSION);
retrieveCustomButtons(intent, context);
retrieveToolbarColor(intent, context);
- retrieveBottomBarColor(intent, context);
+ retrieveBottomBarColor(intent);
mEnableUrlBarHiding = IntentUtils.safeGetBooleanExtra(
intent, CustomTabsIntent.EXTRA_ENABLE_URLBAR_HIDING, true);
mKeepAliveServiceIntent = IntentUtils.safeGetParcelableExtra(intent, EXTRA_KEEP_ALIVE);
@@ -147,10 +147,10 @@ public class CustomTabIntentDataProvider {
/**
* Must be called after calling {@link #retrieveToolbarColor(Intent, Context)}.
*/
- private void retrieveBottomBarColor(Intent intent, Context context) {
+ private void retrieveBottomBarColor(Intent intent) {
int defaultColor = mToolbarColor;
int color = IntentUtils.safeGetIntExtra(intent,
- CustomTabsIntent.EXTRA_CUSTOM_ACTION_BAR_COLOR, defaultColor);
+ CustomTabsIntent.EXTRA_SECONDARY_ACTION_BAR_COLOR, defaultColor);
mBottomBarColor = removeTransparencyFromColor(color, defaultColor);
}

Powered by Google App Engine
This is Rietveld 408576698