| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser/google/google_url_tracker_client_impl.h" | 5 #include "ios/chrome/browser/google/google_url_tracker_client_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" | 8 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
| 9 | 9 |
| 10 GoogleURLTrackerClientImpl::GoogleURLTrackerClientImpl( | 10 GoogleURLTrackerClientImpl::GoogleURLTrackerClientImpl( |
| 11 ios::ChromeBrowserState* browser_state) | 11 ios::ChromeBrowserState* browser_state) |
| 12 : browser_state_(browser_state) { | 12 : browser_state_(browser_state) { |
| 13 DCHECK(browser_state_); | 13 DCHECK(browser_state_); |
| 14 } | 14 } |
| 15 | 15 |
| 16 GoogleURLTrackerClientImpl::~GoogleURLTrackerClientImpl() { | 16 GoogleURLTrackerClientImpl::~GoogleURLTrackerClientImpl() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 bool GoogleURLTrackerClientImpl::IsBackgroundNetworkingEnabled() { | 19 bool GoogleURLTrackerClientImpl::IsBackgroundNetworkingEnabled() { |
| 20 return true; | 20 return true; |
| 21 } | 21 } |
| 22 | 22 |
| 23 PrefService* GoogleURLTrackerClientImpl::GetPrefs() { | 23 PrefService* GoogleURLTrackerClientImpl::GetPrefs() { |
| 24 return browser_state_->GetPrefs(); | 24 return browser_state_->GetPrefs(); |
| 25 } | 25 } |
| 26 | 26 |
| 27 net::URLRequestContextGetter* GoogleURLTrackerClientImpl::GetRequestContext() { | 27 net::URLRequestContextGetter* GoogleURLTrackerClientImpl::GetRequestContext() { |
| 28 return browser_state_->GetRequestContext(); | 28 return browser_state_->GetRequestContext(); |
| 29 } | 29 } |
| OLD | NEW |