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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 2351803002: Switching ExtensionSpecialStoragePolicy::IsStorageDurable to use DurableStoragePermissionContext. (Closed)
Patch Set: Switching IsStorageDurable() to use DurableStoragePermissionContext. Created 4 years, 2 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 (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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 794
795 bool ProfileImpl::IsLegacySupervised() const { 795 bool ProfileImpl::IsLegacySupervised() const {
796 return IsSupervised() && !IsChild(); 796 return IsSupervised() && !IsChild();
797 } 797 }
798 798
799 ExtensionSpecialStoragePolicy* 799 ExtensionSpecialStoragePolicy*
800 ProfileImpl::GetExtensionSpecialStoragePolicy() { 800 ProfileImpl::GetExtensionSpecialStoragePolicy() {
801 #if defined(ENABLE_EXTENSIONS) 801 #if defined(ENABLE_EXTENSIONS)
802 if (!extension_special_storage_policy_.get()) { 802 if (!extension_special_storage_policy_.get()) {
803 TRACE_EVENT0("browser", "ProfileImpl::GetExtensionSpecialStoragePolicy") 803 TRACE_EVENT0("browser", "ProfileImpl::GetExtensionSpecialStoragePolicy")
804 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy( 804 extension_special_storage_policy_ = new ExtensionSpecialStoragePolicy(this);
805 CookieSettingsFactory::GetForProfile(this).get());
806 } 805 }
807 return extension_special_storage_policy_.get(); 806 return extension_special_storage_policy_.get();
808 #else 807 #else
809 return NULL; 808 return NULL;
810 #endif 809 #endif
811 } 810 }
812 811
813 void ProfileImpl::OnLocaleReady() { 812 void ProfileImpl::OnLocaleReady() {
814 TRACE_EVENT0("browser", "ProfileImpl::OnLocaleReady"); 813 TRACE_EVENT0("browser", "ProfileImpl::OnLocaleReady");
815 SCOPED_UMA_HISTOGRAM_TIMER("Profile.OnLocaleReadyTime"); 814 SCOPED_UMA_HISTOGRAM_TIMER("Profile.OnLocaleReadyTime");
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { 1270 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) {
1272 domain_reliability::DomainReliabilityService* service = 1271 domain_reliability::DomainReliabilityService* service =
1273 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> 1272 domain_reliability::DomainReliabilityServiceFactory::GetInstance()->
1274 GetForBrowserContext(this); 1273 GetForBrowserContext(this);
1275 if (!service) 1274 if (!service)
1276 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); 1275 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>();
1277 1276
1278 return service->CreateMonitor( 1277 return service->CreateMonitor(
1279 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); 1278 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
1280 } 1279 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698