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 StringProvider
* ChromeBrowserProvider::GetStringProvider() {
65 GeolocationUpdaterProvider
*
66 ChromeBrowserProvider::GetGeolocationUpdaterProvider() {
70 void ChromeBrowserProvider::ShowTranslateSettings() {
73 std::string
ChromeBrowserProvider::GetDistributionBrandCode() {
77 bool ChromeBrowserProvider::IsBookmarkCollectionEnabled() {
81 const char* ChromeBrowserProvider::GetChromeUIScheme() {
85 void ChromeBrowserProvider::SetUIViewAlphaWithAnimation(UIView
* view
,
89 metrics::MetricsService
* ChromeBrowserProvider::GetMetricsService() {
93 autofill::CardUnmaskPromptView
*
94 ChromeBrowserProvider::CreateCardUnmaskPromptView(
95 autofill::CardUnmaskPromptController
* controller
) {
99 std::string
ChromeBrowserProvider::GetRiskData() {
100 return std::string();
103 std::string
ChromeBrowserProvider::GetProductVersionWithPrefix(
104 const std::string
& prefix
) {
106 return std::string();
109 std::string
ChromeBrowserProvider::GetVersionString() {
110 return std::string();
113 std::string
ChromeBrowserProvider::GetVersionNumber() {
114 return std::string();
117 rappor::RapporService
* ChromeBrowserProvider::GetRapporService() {
121 SearchProvider
* ChromeBrowserProvider::GetSearchProvider() {