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 void ChromeBrowserProvider::AssertBrowserContextKeyedFactoriesBuilt() {
43 void ChromeBrowserProvider::RegisterLocalState(PrefRegistrySimple
* registry
) {
46 void ChromeBrowserProvider::RegisterProfilePrefs(
47 user_prefs::PrefRegistrySyncable
* registry
) {
50 ProfileOAuth2TokenServiceIOSProvider
*
51 ChromeBrowserProvider::GetProfileOAuth2TokenServiceIOSProvider() {
55 UpdatableResourceProvider
*
56 ChromeBrowserProvider::GetUpdatableResourceProvider() {
60 ChromeBrowserStateManager
*
61 ChromeBrowserProvider::GetChromeBrowserStateManager() {
65 InfoBarViewPlaceholder
ChromeBrowserProvider::CreateInfoBarView(
67 InfoBarViewDelegate
* delegate
) {
71 ChromeIdentityService
* ChromeBrowserProvider::GetChromeIdentityService() {
75 StringProvider
* ChromeBrowserProvider::GetStringProvider() {
79 GeolocationUpdaterProvider
*
80 ChromeBrowserProvider::GetGeolocationUpdaterProvider() {
84 std::string
ChromeBrowserProvider::GetDistributionBrandCode() {
88 const char* ChromeBrowserProvider::GetChromeUIScheme() {
92 void ChromeBrowserProvider::SetUIViewAlphaWithAnimation(UIView
* view
,
96 metrics::MetricsService
* ChromeBrowserProvider::GetMetricsService() {
100 autofill::CardUnmaskPromptView
*
101 ChromeBrowserProvider::CreateCardUnmaskPromptView(
102 autofill::CardUnmaskPromptController
* controller
) {
106 std::string
ChromeBrowserProvider::GetRiskData() {
107 return std::string();
110 policy::BrowserPolicyConnector
*
111 ChromeBrowserProvider::GetBrowserPolicyConnector() {
115 rappor::RapporService
* ChromeBrowserProvider::GetRapporService() {
119 bool ChromeBrowserProvider::IsOffTheRecordSessionActive() {