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

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

Issue 2234133003: [HBD] Call PurgePluginListCache() whenever plugin content settings change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hbd_exceptions
Patch Set: Rebase and tracked patchset change Created 4 years, 3 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
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698