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

Side by Side Diff: ios/chrome/browser/google/google_url_tracker_client_impl.cc

Issue 1667733002: Move chrome_browser_state.{cc,h} to ios/chrome/browser/browser_state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test_support_ios
Patch Set: Created 4 years, 10 months 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 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698