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

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

Issue 2847263003: Add tests to make sure closed CCT activities are not leaked. (Closed)
Patch Set: Revert debugging Created 3 years, 7 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/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 ae37620f30144e4efbc4693e7fa93bb826c38db5..5fac115058e51cc9e1147b987b403d8230f34183 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
@@ -233,6 +233,14 @@ public class CustomTabToolbar extends ToolbarLayout implements LocationBar,
return mCustomActionButton;
}
+ /**
+ * @return The close button. For test purpose only.
+ */
+ @VisibleForTesting
+ public ImageButton getCloseButtonForTest() {
+ return mCloseButton;
+ }
+
@Override
public int getTabStripHeight() {
return 0;

Powered by Google App Engine
This is Rietveld 408576698