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

Unified Diff: chrome/browser/android/compositor/layer_title_cache.cc

Issue 2320623003: Move title creation logic to native (Closed)
Patch Set: address comments Created 4 years, 3 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 | « chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocumentTabSwitcher.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/layer_title_cache.cc
diff --git a/chrome/browser/android/compositor/layer_title_cache.cc b/chrome/browser/android/compositor/layer_title_cache.cc
index 1cd7755e9f3747a70dac2bced95bc7551e10259b..455bfe1007aac2d0a1c79fb2ed0518be464c87b2 100644
--- a/chrome/browser/android/compositor/layer_title_cache.cc
+++ b/chrome/browser/android/compositor/layer_title_cache.cc
@@ -99,6 +99,12 @@ void LayerTitleCache::ClearExcept(JNIEnv* env,
}
DecorationTitle* LayerTitleCache::GetTitleLayer(int tab_id) {
+ if (!layer_cache_.Lookup(tab_id)) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_LayerTitleCache_buildUpdatedTitle(env, weak_java_title_cache_.get(env),
+ tab_id);
+ }
+
return layer_cache_.Lookup(tab_id);
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocumentTabSwitcher.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698