Commit 25434af2 authored by gogerald's avatar gogerald Committed by Commit Bot

[StartSurface] Remove unused context

Bug: 982018
Change-Id: I03d55c949e27870332409111a677bb3170b5549d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894460
Auto-Submit: Ganggui Tang <gogerald@chromium.org>
Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org>
Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712353}
parent c91d5bb8
...@@ -41,8 +41,7 @@ public class TasksSurfaceCoordinator implements TasksSurface { ...@@ -41,8 +41,7 @@ public class TasksSurfaceCoordinator implements TasksSurface {
activity, mView.getBodyViewContainer()); activity, mView.getBodyViewContainer());
} }
mMediator = mMediator = new TasksSurfaceMediator(propertyModel, fakeboxDelegate, isTabCarousel);
new TasksSurfaceMediator(activity, propertyModel, fakeboxDelegate, isTabCarousel);
LinearLayout mvTilesLayout = mView.findViewById(R.id.mv_tiles_layout); LinearLayout mvTilesLayout = mView.findViewById(R.id.mv_tiles_layout);
mMostVisitedList = new MostVisitedListCoordinator(activity, mvTilesLayout, propertyModel); mMostVisitedList = new MostVisitedListCoordinator(activity, mvTilesLayout, propertyModel);
......
...@@ -11,7 +11,6 @@ import static org.chromium.chrome.browser.tasks.TasksSurfaceProperties.IS_TAB_CA ...@@ -11,7 +11,6 @@ import static org.chromium.chrome.browser.tasks.TasksSurfaceProperties.IS_TAB_CA
import static org.chromium.chrome.browser.tasks.TasksSurfaceProperties.IS_VOICE_RECOGNITION_BUTTON_VISIBLE; import static org.chromium.chrome.browser.tasks.TasksSurfaceProperties.IS_VOICE_RECOGNITION_BUTTON_VISIBLE;
import static org.chromium.chrome.browser.tasks.TasksSurfaceProperties.VOICE_SEARCH_BUTTON_CLICK_LISTENER; import static org.chromium.chrome.browser.tasks.TasksSurfaceProperties.VOICE_SEARCH_BUTTON_CLICK_LISTENER;
import android.content.Context;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.text.Editable; import android.text.Editable;
import android.text.TextWatcher; import android.text.TextWatcher;
...@@ -31,8 +30,8 @@ class TasksSurfaceMediator { ...@@ -31,8 +30,8 @@ class TasksSurfaceMediator {
private final FakeboxDelegate mFakeboxDelegate; private final FakeboxDelegate mFakeboxDelegate;
private final PropertyModel mModel; private final PropertyModel mModel;
TasksSurfaceMediator(Context context, PropertyModel model, FakeboxDelegate fakeboxDelegate, TasksSurfaceMediator(
boolean isTabCarousel) { PropertyModel model, FakeboxDelegate fakeboxDelegate, boolean isTabCarousel) {
mFakeboxDelegate = fakeboxDelegate; mFakeboxDelegate = fakeboxDelegate;
assert mFakeboxDelegate != null; assert mFakeboxDelegate != null;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment