diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-20 09:21:50 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-20 09:21:50 +0000 |
commit | 8c6335d3d176a06d41252fd4a4c5335fa2113aa6 (patch) | |
tree | a10ff8fc3f25db04c9426c009feb8c92790e6c06 /chrome/browser/profile.cc | |
parent | 1e52ae9f050e47ec670e0b3ad931652709a59ae7 (diff) | |
download | chromium_src-8c6335d3d176a06d41252fd4a4c5335fa2113aa6.zip chromium_src-8c6335d3d176a06d41252fd4a4c5335fa2113aa6.tar.gz chromium_src-8c6335d3d176a06d41252fd4a4c5335fa2113aa6.tar.bz2 |
Drop the code allowing privacy blacklists to be shipped in extensions.
The plan is to implement it in a different way.
TEST=Covered by unit_tests.
BUG=21541
Review URL: http://codereview.chromium.org/552025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36626 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r-- | chrome/browser/profile.cc | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc index 3231ede2..7aaeea8 100644 --- a/chrome/browser/profile.cc +++ b/chrome/browser/profile.cc @@ -35,7 +35,7 @@ #include "chrome/browser/net/ssl_config_service_manager.h" #include "chrome/browser/notifications/desktop_notification_service.h" #include "chrome/browser/password_manager/password_store_default.h" -#include "chrome/browser/privacy_blacklist/blacklist_manager.h" +#include "chrome/browser/privacy_blacklist/blacklist.h" #include "chrome/browser/profile_manager.h" #include "chrome/browser/renderer_host/render_process_host.h" #include "chrome/browser/search_versus_navigate_classifier.h" @@ -413,8 +413,8 @@ class OffTheRecordProfileImpl : public Profile, return host_zoom_map_.get(); } - virtual BlacklistManager* GetBlacklistManager() { - return GetOriginalProfile()->GetBlacklistManager(); + virtual Blacklist* GetPrivacyBlacklist() { + return GetOriginalProfile()->GetPrivacyBlacklist(); } virtual SessionService* GetSessionService() { @@ -573,8 +573,8 @@ ProfileImpl::ProfileImpl(const FilePath& path) media_request_context_(NULL), extensions_request_context_(NULL), host_zoom_map_(NULL), - blacklist_manager_(NULL), - blacklist_manager_created_(false), + privacy_blacklist_(NULL), + privacy_blacklist_created_(false), history_service_created_(false), favicon_service_created_(false), created_web_data_service_(false), @@ -969,17 +969,16 @@ HostZoomMap* ProfileImpl::GetHostZoomMap() { return host_zoom_map_.get(); } -BlacklistManager* ProfileImpl::GetBlacklistManager() { +Blacklist* ProfileImpl::GetPrivacyBlacklist() { if (!CommandLine::ForCurrentProcess()->HasSwitch( switches::kEnablePrivacyBlacklists)) { return NULL; } - if (!blacklist_manager_created_) { - blacklist_manager_created_ = true; - blacklist_manager_ = new BlacklistManager(this, GetExtensionsService()); - blacklist_manager_->Initialize(); + if (!privacy_blacklist_created_) { + privacy_blacklist_created_ = true; + privacy_blacklist_.reset(new Blacklist()); } - return blacklist_manager_.get(); + return privacy_blacklist_.get(); } HistoryService* ProfileImpl::GetHistoryService(ServiceAccessType sat) { |