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/browser_state/chrome_browser_state_io_data.h" | 5 #include "ios/chrome/browser/browser_state/chrome_browser_state_io_data.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 chrome_http_user_agent_settings_.reset( | 115 chrome_http_user_agent_settings_.reset( |
116 new IOSChromeHttpUserAgentSettings(pref_service)); | 116 new IOSChromeHttpUserAgentSettings(pref_service)); |
117 | 117 |
118 // These members are used only for sign in, which is not enabled | 118 // These members are used only for sign in, which is not enabled |
119 // in incognito mode. So no need to initialize them. | 119 // in incognito mode. So no need to initialize them. |
120 if (!IsOffTheRecord()) { | 120 if (!IsOffTheRecord()) { |
121 google_services_user_account_id_.Init(prefs::kGoogleServicesUserAccountId, | 121 google_services_user_account_id_.Init(prefs::kGoogleServicesUserAccountId, |
122 pref_service); | 122 pref_service); |
123 google_services_user_account_id_.MoveToThread(io_task_runner); | 123 google_services_user_account_id_.MoveToThread(io_task_runner); |
124 | 124 |
125 sync_disabled_.Init(sync_driver::prefs::kSyncManaged, pref_service); | 125 sync_disabled_.Init(syncer::prefs::kSyncManaged, pref_service); |
126 sync_disabled_.MoveToThread(io_task_runner); | 126 sync_disabled_.MoveToThread(io_task_runner); |
127 | 127 |
128 signin_allowed_.Init(prefs::kSigninAllowed, pref_service); | 128 signin_allowed_.Init(prefs::kSigninAllowed, pref_service); |
129 signin_allowed_.MoveToThread(io_task_runner); | 129 signin_allowed_.MoveToThread(io_task_runner); |
130 } | 130 } |
131 } | 131 } |
132 | 132 |
133 ChromeBrowserStateIOData::AppRequestContext::AppRequestContext() {} | 133 ChromeBrowserStateIOData::AppRequestContext::AppRequestContext() {} |
134 | 134 |
135 void ChromeBrowserStateIOData::AppRequestContext::SetCookieStore( | 135 void ChromeBrowserStateIOData::AppRequestContext::SetCookieStore( |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 return std::unique_ptr<net::HttpCache>( | 484 return std::unique_ptr<net::HttpCache>( |
485 new net::HttpCache(session, std::move(main_backend), true)); | 485 new net::HttpCache(session, std::move(main_backend), true)); |
486 } | 486 } |
487 | 487 |
488 std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( | 488 std::unique_ptr<net::HttpCache> ChromeBrowserStateIOData::CreateHttpFactory( |
489 net::HttpNetworkSession* shared_session, | 489 net::HttpNetworkSession* shared_session, |
490 std::unique_ptr<net::HttpCache::BackendFactory> backend) const { | 490 std::unique_ptr<net::HttpCache::BackendFactory> backend) const { |
491 return std::unique_ptr<net::HttpCache>( | 491 return std::unique_ptr<net::HttpCache>( |
492 new net::HttpCache(shared_session, std::move(backend), true)); | 492 new net::HttpCache(shared_session, std::move(backend), true)); |
493 } | 493 } |
OLD | NEW |