Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: ios/chrome/test/testing_application_context.cc

Issue 1456783004: Remove configuration policy on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up gyp and DEPS Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ios/chrome/test/testing_application_context.h" 5 #include "ios/chrome/test/testing_application_context.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/time/default_tick_clock.h" 8 #include "base/time/default_tick_clock.h"
9 #include "components/network_time/network_time_tracker.h" 9 #include "components/network_time/network_time_tracker.h"
10 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" 10 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 DCHECK(thread_checker_.CalledOnValidThread()); 83 DCHECK(thread_checker_.CalledOnValidThread());
84 return nullptr; 84 return nullptr;
85 } 85 }
86 86
87 variations::VariationsService* 87 variations::VariationsService*
88 TestingApplicationContext::GetVariationsService() { 88 TestingApplicationContext::GetVariationsService() {
89 DCHECK(thread_checker_.CalledOnValidThread()); 89 DCHECK(thread_checker_.CalledOnValidThread());
90 return nullptr; 90 return nullptr;
91 } 91 }
92 92
93 policy::BrowserPolicyConnector*
94 TestingApplicationContext::GetBrowserPolicyConnector() {
95 DCHECK(thread_checker_.CalledOnValidThread());
96 return nullptr;
97 }
98
99 policy::PolicyService* TestingApplicationContext::GetPolicyService() {
100 DCHECK(thread_checker_.CalledOnValidThread());
101 return nullptr;
102 }
103
104 rappor::RapporService* TestingApplicationContext::GetRapporService() { 93 rappor::RapporService* TestingApplicationContext::GetRapporService() {
105 DCHECK(thread_checker_.CalledOnValidThread()); 94 DCHECK(thread_checker_.CalledOnValidThread());
106 return nullptr; 95 return nullptr;
107 } 96 }
108 97
109 net_log::ChromeNetLog* TestingApplicationContext::GetNetLog() { 98 net_log::ChromeNetLog* TestingApplicationContext::GetNetLog() {
110 DCHECK(thread_checker_.CalledOnValidThread()); 99 DCHECK(thread_checker_.CalledOnValidThread());
111 return nullptr; 100 return nullptr;
112 } 101 }
113 102
114 network_time::NetworkTimeTracker* 103 network_time::NetworkTimeTracker*
115 TestingApplicationContext::GetNetworkTimeTracker() { 104 TestingApplicationContext::GetNetworkTimeTracker() {
116 DCHECK(thread_checker_.CalledOnValidThread()); 105 DCHECK(thread_checker_.CalledOnValidThread());
117 if (!network_time_tracker_) { 106 if (!network_time_tracker_) {
118 DCHECK(local_state_); 107 DCHECK(local_state_);
119 network_time_tracker_.reset(new network_time::NetworkTimeTracker( 108 network_time_tracker_.reset(new network_time::NetworkTimeTracker(
120 make_scoped_ptr(new base::DefaultTickClock), local_state_)); 109 make_scoped_ptr(new base::DefaultTickClock), local_state_));
121 } 110 }
122 return network_time_tracker_.get(); 111 return network_time_tracker_.get();
123 } 112 }
OLDNEW
« no previous file with comments | « ios/chrome/test/testing_application_context.h ('k') | ios/public/provider/chrome/browser/chrome_browser_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698