| Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
|
| index c3d44906522197779a5eea376b5b8b7f6c03e4a2..8a40c1376b79e61d3135b91b862c66ca5caa6786 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
|
| @@ -235,6 +235,7 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
|
| private AppMenuPropertiesDelegate mAppMenuPropertiesDelegate;
|
| private AppMenuHandler mAppMenuHandler;
|
| private ToolbarManager mToolbarManager;
|
| + private BottomSheet mBottomSheet;
|
|
|
| // Time in ms that it took took us to inflate the initial layout
|
| private long mInflateInitialLayoutDurationMs;
|
| @@ -389,8 +390,8 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
|
| // Get a handle to the bottom sheet if using the bottom control container.
|
| if (controlContainerLayoutId == R.layout.bottom_control_container) {
|
| View coordinator = findViewById(R.id.coordinator);
|
| - BottomSheet bottomSheet = (BottomSheet) findViewById(R.id.bottom_sheet);
|
| - bottomSheet.init(coordinator, controlContainer.getView());
|
| + mBottomSheet = (BottomSheet) findViewById(R.id.bottom_sheet);
|
| + mBottomSheet.init(coordinator, controlContainer.getView());
|
| }
|
|
|
| // Inflate the correct toolbar layout for the device.
|
| @@ -587,6 +588,14 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
|
| }
|
|
|
| /**
|
| + * Get the Chrome Home bottom sheet if it exists.
|
| + * @return The bottom sheet or null.
|
| + */
|
| + public BottomSheet getBottomSheet() {
|
| + return mBottomSheet;
|
| + }
|
| +
|
| + /**
|
| * @return {@link AppMenuPropertiesDelegate} instance that the {@link AppMenuHandler}
|
| * should be using in this activity.
|
| */
|
|
|