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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java

Issue 2806593003: Force update CCT Title when url is set if it only shows title (Closed)
Patch Set: got rid of the fallback for cherrypicking 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
index 714c7bbf6c6af27ed99e9f903a873f1fdfe6d1f5..2946a1f36958e1b94ccecd70ab26a98e82f8974d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java
@@ -345,6 +345,9 @@ public class CustomTabToolbar extends ToolbarLayout implements LocationBar,
}
String url = getCurrentTab().getUrl().trim();
+ if (mState == STATE_TITLE_ONLY) {
+ if (!TextUtils.isEmpty(getCurrentTab().getTitle())) setTitleToPageTitle();
+ }
// Don't show anything for Chrome URLs and "about:blank".
// If we have taken a pre-initialized WebContents, then the starting URL
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698