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.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 // initialized that we might be reading from the IO thread. | 613 // initialized that we might be reading from the IO thread. |
614 | 614 |
615 io_data_.Init(cookie_path, channel_id_path, cache_path, | 615 io_data_.Init(cookie_path, channel_id_path, cache_path, |
616 cache_max_size, media_cache_path, media_cache_max_size, | 616 cache_max_size, media_cache_path, media_cache_max_size, |
617 extensions_cookie_path, GetPath(), predictor_, | 617 extensions_cookie_path, GetPath(), predictor_, |
618 session_cookie_mode, GetSpecialStoragePolicy(), | 618 session_cookie_mode, GetSpecialStoragePolicy(), |
619 CreateDomainReliabilityMonitor(local_state)); | 619 CreateDomainReliabilityMonitor(local_state)); |
620 | 620 |
621 #if defined(ENABLE_PLUGINS) | 621 #if defined(ENABLE_PLUGINS) |
622 ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( | 622 ChromePluginServiceFilter::GetInstance()->RegisterResourceContext( |
623 PluginPrefs::GetForProfile(this).get(), | 623 this, io_data_.GetResourceContextNoInit()); |
624 HostContentSettingsMapFactory::GetForProfile(this), | |
625 io_data_.GetResourceContextNoInit()); | |
626 #endif | 624 #endif |
627 | 625 |
628 TRACE_EVENT0("browser", "ProfileImpl::SetSaveSessionStorageOnDisk"); | 626 TRACE_EVENT0("browser", "ProfileImpl::SetSaveSessionStorageOnDisk"); |
629 content::BrowserContext::GetDefaultStoragePartition(this)-> | 627 content::BrowserContext::GetDefaultStoragePartition(this)-> |
630 GetDOMStorageContext()->SetSaveSessionStorageOnDisk(); | 628 GetDOMStorageContext()->SetSaveSessionStorageOnDisk(); |
631 | 629 |
632 // The DomDistillerViewerSource is not a normal WebUI so it must be registered | 630 // The DomDistillerViewerSource is not a normal WebUI so it must be registered |
633 // as a URLDataSource early. | 631 // as a URLDataSource early. |
634 dom_distiller::RegisterViewerSource(this); | 632 dom_distiller::RegisterViewerSource(this); |
635 | 633 |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1271 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
1274 domain_reliability::DomainReliabilityService* service = | 1272 domain_reliability::DomainReliabilityService* service = |
1275 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1273 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
1276 GetForBrowserContext(this); | 1274 GetForBrowserContext(this); |
1277 if (!service) | 1275 if (!service) |
1278 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1276 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1279 | 1277 |
1280 return service->CreateMonitor( | 1278 return service->CreateMonitor( |
1281 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); | 1279 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); |
1282 } | 1280 } |
OLD | NEW |