Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / ios / public / provider / chrome / browser / chrome_browser_provider.cc
blob4e6393d1267683fb4f1e8ed819d40b86e651661e
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"
9 namespace ios {
11 namespace {
12 ChromeBrowserProvider* g_chrome_browser_provider = nullptr;
13 } // namespace
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() {
33 return nullptr;
36 PrefService* ChromeBrowserProvider::GetLocalState() {
37 return nullptr;
40 ProfileOAuth2TokenServiceIOSProvider*
41 ChromeBrowserProvider::GetProfileOAuth2TokenServiceIOSProvider() {
42 return nullptr;
45 UpdatableResourceProvider*
46 ChromeBrowserProvider::GetUpdatableResourceProvider() {
47 return nullptr;
50 ChromeBrowserStateManager*
51 ChromeBrowserProvider::GetChromeBrowserStateManager() {
52 return nullptr;
55 InfoBarViewPlaceholder ChromeBrowserProvider::CreateInfoBarView(
56 CGRect frame,
57 InfoBarViewDelegate* delegate) {
58 return nullptr;
61 StringProvider* ChromeBrowserProvider::GetStringProvider() {
62 return nullptr;
65 GeolocationUpdaterProvider*
66 ChromeBrowserProvider::GetGeolocationUpdaterProvider() {
67 return nullptr;
70 void ChromeBrowserProvider::ShowTranslateSettings() {
73 std::string ChromeBrowserProvider::GetDistributionBrandCode() {
74 return std::string();
77 bool ChromeBrowserProvider::IsBookmarkCollectionEnabled() {
78 return false;
81 const char* ChromeBrowserProvider::GetChromeUIScheme() {
82 return nullptr;
85 void ChromeBrowserProvider::SetUIViewAlphaWithAnimation(UIView* view,
86 float alpha) {
89 metrics::MetricsService* ChromeBrowserProvider::GetMetricsService() {
90 return nullptr;
93 autofill::CardUnmaskPromptView*
94 ChromeBrowserProvider::CreateCardUnmaskPromptView(
95 autofill::CardUnmaskPromptController* controller) {
96 return nullptr;
99 std::string ChromeBrowserProvider::GetRiskData() {
100 return std::string();
103 std::string ChromeBrowserProvider::GetProductVersionWithPrefix(
104 const std::string& prefix) {
105 NOTREACHED();
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() {
118 return nullptr;
121 SearchProvider* ChromeBrowserProvider::GetSearchProvider() {
122 return nullptr;
125 } // namespace ios