| 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/signin/signin_client_impl.h" | 5 #include "ios/chrome/browser/signin/signin_client_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "ios/chrome/browser/browser_state/chrome_browser_state_manager.h" | 29 #include "ios/chrome/browser/browser_state/chrome_browser_state_manager.h" |
| 30 #include "ios/chrome/browser/content_settings/cookie_settings_factory.h" | 30 #include "ios/chrome/browser/content_settings/cookie_settings_factory.h" |
| 31 #include "ios/chrome/browser/content_settings/host_content_settings_map_factory.
h" | 31 #include "ios/chrome/browser/content_settings/host_content_settings_map_factory.
h" |
| 32 #include "ios/chrome/browser/signin/gaia_auth_fetcher_ios.h" | 32 #include "ios/chrome/browser/signin/gaia_auth_fetcher_ios.h" |
| 33 #include "ios/chrome/browser/web_data_service_factory.h" | 33 #include "ios/chrome/browser/web_data_service_factory.h" |
| 34 #include "ios/chrome/common/channel_info.h" | 34 #include "ios/chrome/common/channel_info.h" |
| 35 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 35 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
| 36 #include "net/url_request/url_request_context_getter.h" | 36 #include "net/url_request/url_request_context_getter.h" |
| 37 #include "url/gurl.h" | 37 #include "url/gurl.h" |
| 38 | 38 |
| 39 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 40 #error "This file requires ARC support." |
| 41 #endif |
| 42 |
| 39 SigninClientImpl::SigninClientImpl( | 43 SigninClientImpl::SigninClientImpl( |
| 40 ios::ChromeBrowserState* browser_state, | 44 ios::ChromeBrowserState* browser_state, |
| 41 SigninErrorController* signin_error_controller) | 45 SigninErrorController* signin_error_controller) |
| 42 : OAuth2TokenService::Consumer("signin_client_impl"), | 46 : OAuth2TokenService::Consumer("signin_client_impl"), |
| 43 browser_state_(browser_state), | 47 browser_state_(browser_state), |
| 44 signin_error_controller_(signin_error_controller) { | 48 signin_error_controller_(signin_error_controller) { |
| 45 signin_error_controller_->AddObserver(this); | 49 signin_error_controller_->AddObserver(this); |
| 46 net::NetworkChangeNotifier::AddNetworkChangeObserver(this); | 50 net::NetworkChangeNotifier::AddNetworkChangeObserver(this); |
| 47 } | 51 } |
| 48 | 52 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 } | 237 } |
| 234 } | 238 } |
| 235 | 239 |
| 236 std::unique_ptr<GaiaAuthFetcher> SigninClientImpl::CreateGaiaAuthFetcher( | 240 std::unique_ptr<GaiaAuthFetcher> SigninClientImpl::CreateGaiaAuthFetcher( |
| 237 GaiaAuthConsumer* consumer, | 241 GaiaAuthConsumer* consumer, |
| 238 const std::string& source, | 242 const std::string& source, |
| 239 net::URLRequestContextGetter* getter) { | 243 net::URLRequestContextGetter* getter) { |
| 240 return base::MakeUnique<GaiaAuthFetcherIOS>(consumer, source, getter, | 244 return base::MakeUnique<GaiaAuthFetcherIOS>(consumer, source, getter, |
| 241 browser_state_); | 245 browser_state_); |
| 242 } | 246 } |
| OLD | NEW |