1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
7 #include "base/logging.h"
12 ChromeBrowserProvider
* g_chrome_browser_provider
= nullptr;
15 void SetChromeBrowserProvider(ChromeBrowserProvider
* provider
) {
16 g_chrome_browser_provider
= provider
;
19 ChromeBrowserProvider
* GetChromeBrowserProvider() {
20 return g_chrome_browser_provider
;
23 ChromeBrowserProvider::~ChromeBrowserProvider() {
26 // A dummy implementation of ChromeBrowserProvider.
28 ChromeBrowserProvider::ChromeBrowserProvider() {
31 net::URLRequestContextGetter
*
32 ChromeBrowserProvider::GetSystemURLRequestContext() {
36 PrefService
* ChromeBrowserProvider::GetLocalState() {
40 ProfileOAuth2TokenServiceIOSProvider
*
41 ChromeBrowserProvider::GetProfileOAuth2TokenServiceIOSProvider() {
45 UpdatableResourceProvider
*
46 ChromeBrowserProvider::GetUpdatableResourceProvider() {
50 ChromeBrowserStateManager
*
51 ChromeBrowserProvider::GetChromeBrowserStateManager() {
55 InfoBarViewPlaceholder
ChromeBrowserProvider::CreateInfoBarView(
57 InfoBarViewDelegate
* delegate
) {
61 ChromeIdentityService
* ChromeBrowserProvider::GetChromeIdentityService() {
65 StringProvider
* ChromeBrowserProvider::GetStringProvider() {
69 GeolocationUpdaterProvider
*
70 ChromeBrowserProvider::GetGeolocationUpdaterProvider() {
74 std::string
ChromeBrowserProvider::GetDistributionBrandCode() {
78 const char* ChromeBrowserProvider::GetChromeUIScheme() {
82 void ChromeBrowserProvider::SetUIViewAlphaWithAnimation(UIView
* view
,
86 metrics::MetricsService
* ChromeBrowserProvider::GetMetricsService() {
90 autofill::CardUnmaskPromptView
*
91 ChromeBrowserProvider::CreateCardUnmaskPromptView(
92 autofill::CardUnmaskPromptController
* controller
) {
96 std::string
ChromeBrowserProvider::GetRiskData() {
100 rappor::RapporService
* ChromeBrowserProvider::GetRapporService() {