OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/profiles/profile_impl_io_data.h" | 5 #include "chrome/browser/profiles/profile_impl_io_data.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 ChromeNetworkDelegate::InitializeReferrersEnabled( | 231 ChromeNetworkDelegate::InitializeReferrersEnabled( |
232 io_data_->enable_referrers(), pref_service); | 232 io_data_->enable_referrers(), pref_service); |
233 io_data_->clear_local_state_on_exit()->Init( | 233 io_data_->clear_local_state_on_exit()->Init( |
234 prefs::kClearSiteDataOnExit, pref_service, NULL); | 234 prefs::kClearSiteDataOnExit, pref_service, NULL); |
235 io_data_->clear_local_state_on_exit()->MoveToThread(BrowserThread::IO); | 235 io_data_->clear_local_state_on_exit()->MoveToThread(BrowserThread::IO); |
236 #if defined(ENABLE_SAFE_BROWSING) | 236 #if defined(ENABLE_SAFE_BROWSING) |
237 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, | 237 io_data_->safe_browsing_enabled()->Init(prefs::kSafeBrowsingEnabled, |
238 pref_service, NULL); | 238 pref_service, NULL); |
239 io_data_->safe_browsing_enabled()->MoveToThread(BrowserThread::IO); | 239 io_data_->safe_browsing_enabled()->MoveToThread(BrowserThread::IO); |
240 #endif | 240 #endif |
| 241 io_data_->garbled_text_fix_enabled()->Init( |
| 242 prefs::kEnableAutoGarbledTextFix, pref_service, NULL); |
| 243 io_data_->garbled_text_fix_enabled()->MoveToThread(BrowserThread::IO); |
241 initialized_ = true; | 244 initialized_ = true; |
242 } | 245 } |
243 } | 246 } |
244 | 247 |
245 ProfileImplIOData::LazyParams::LazyParams() | 248 ProfileImplIOData::LazyParams::LazyParams() |
246 : cache_max_size(0), | 249 : cache_max_size(0), |
247 media_cache_max_size(0) {} | 250 media_cache_max_size(0) {} |
248 ProfileImplIOData::LazyParams::~LazyParams() {} | 251 ProfileImplIOData::LazyParams::~LazyParams() {} |
249 | 252 |
250 ProfileImplIOData::ProfileImplIOData() | 253 ProfileImplIOData::ProfileImplIOData() |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 scoped_refptr<ChromeURLRequestContext> | 512 scoped_refptr<ChromeURLRequestContext> |
510 ProfileImplIOData::AcquireIsolatedAppRequestContext( | 513 ProfileImplIOData::AcquireIsolatedAppRequestContext( |
511 scoped_refptr<ChromeURLRequestContext> main_context, | 514 scoped_refptr<ChromeURLRequestContext> main_context, |
512 const std::string& app_id) const { | 515 const std::string& app_id) const { |
513 // We create per-app contexts on demand, unlike the others above. | 516 // We create per-app contexts on demand, unlike the others above. |
514 scoped_refptr<ChromeURLRequestContext> app_request_context = | 517 scoped_refptr<ChromeURLRequestContext> app_request_context = |
515 InitializeAppRequestContext(main_context, app_id); | 518 InitializeAppRequestContext(main_context, app_id); |
516 DCHECK(app_request_context); | 519 DCHECK(app_request_context); |
517 return app_request_context; | 520 return app_request_context; |
518 } | 521 } |
OLD | NEW |