blob: d12e9e06a67fbf351eb662350859d79b4b50b569 [file] [log] [blame]
// 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;
import org.chromium.chrome.browser.customtabs.CustomTabsConnection;
import org.chromium.chrome.browser.dependency_injection.ModuleFactoryOverrides;
import org.chromium.chrome.browser.externalauth.ExternalAuthUtils;
import org.chromium.chrome.browser.multiwindow.MultiWindowUtils;
import dagger.Module;
import dagger.Provides;
/**
* Makes entities provided by AppHooks available for injection with Dagger.
* TODO(pshmakov): merge this with Chrome's AppHooksImpl.
*/
@Module
public class AppHooksModule {
/** See {@link ModuleFactoryOverrides} */
public interface Factory { AppHooksModule create(); }
@Provides
public static CustomTabsConnection provideCustomTabsConnection() {
return CustomTabsConnection.getInstance();
}
@Provides
public ExternalAuthUtils provideExternalAuthUtils() {
return ExternalAuthUtils.getInstance();
}
@Provides
public MultiWindowUtils provideMultiWindowUtils() {
return MultiWindowUtils.getInstance();
}
}