Commit 7ffd057e authored by Sky Malice's avatar Sky Malice Committed by Commit Bot

[Feed] Fix start suface dummy files for feedless build.

Bug: 990399
Change-Id: I5f7727acf55fca3fea3572b2d8a237f43eecb845
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1733015Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Sky Malice <skym@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683783}
parent 9e93f320
......@@ -7,10 +7,29 @@ package org.chromium.chrome.features.start_surface;
import android.view.ViewGroup;
import org.chromium.chrome.browser.ChromeActivity;
import org.chromium.chrome.browser.feed.FeedSurfaceCoordinator;
import org.chromium.ui.modelutil.PropertyModel;
/** The dummy coordinator when feed is not enabled ('src/components/feed/features.gni'). */
class ExploreSurfaceCoordinator {
ExploreSurfaceCoordinator(ChromeActivity activity, ViewGroup parentView,
int bottomControlsHeight, PropertyModel containerPropertyModel) {}
ExploreSurfaceCoordinator(
ChromeActivity activity, ViewGroup parentView, PropertyModel containerPropertyModel) {}
/**
* Gets the {@link FeedSurfaceCreator}.
* @return the {@link FeedSurfaceCreator}.
*/
FeedSurfaceCreator getFeedSurfaceCreator() {
return null;
}
/** Interface to create {@link FeedSurfaceCoordinator} */
interface FeedSurfaceCreator {
/**
* Creates the {@link FeedSurfaceCoordinator} for the specified mode.
* @param isIncognito Whether it is in incognito mode.
* @return The {@link FeedSurfaceCoordinator}.
*/
FeedSurfaceCoordinator createFeedSurfaceCoordinator(boolean isIncognito);
}
}
\ No newline at end of file
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.feed;
/**
* Provides a surface that displays an interest feed rendered list of content suggestions.
*/
public class FeedSurfaceCoordinator {
public void destroy() {}
}
......@@ -74,6 +74,7 @@ if (enable_feed_in_chrome) {
"//chrome/android/feed/dummy/java/src/org/chromium/chrome/browser/feed/FeedAppLifecycle.java",
"//chrome/android/feed/dummy/java/src/org/chromium/chrome/browser/feed/FeedNewTabPage.java",
"//chrome/android/feed/dummy/java/src/org/chromium/chrome/browser/feed/FeedProcessScopeFactory.java",
"//chrome/android/feed/dummy/java/src/org/chromium/chrome/browser/feed/FeedSurfaceCoordinator.java",
"//chrome/android/feed/dummy/java/src/org/chromium/chrome/browser/feed/TestNetworkClient.java",
]
feed_srcjar_deps = []
......
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