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

Unified Diff: chrome/browser/privacy_blacklist/blacklist_manager.cc

Issue 399016: Fix race conditions where an object's constructor uses PostTask on itself. T... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/privacy_blacklist/blacklist_manager.cc
===================================================================
--- chrome/browser/privacy_blacklist/blacklist_manager.cc (revision 32148)
+++ chrome/browser/privacy_blacklist/blacklist_manager.cc (working copy)
@@ -19,15 +19,20 @@
BlacklistPathProvider::~BlacklistPathProvider() {
}
-BlacklistManager::BlacklistManager(Profile* profile,
- BlacklistPathProvider* path_provider)
+BlacklistManager::BlacklistManager()
: first_read_finished_(false),
- profile_(profile),
- compiled_blacklist_path_(
- profile->GetPath().Append(chrome::kPrivacyBlacklistFileName)),
- path_provider_(path_provider) {
+ profile_(NULL),
+ path_provider_(NULL) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+}
+void BlacklistManager::Initialize(Profile* profile,
+ BlacklistPathProvider* path_provider) {
+ profile_ = profile;
+ compiled_blacklist_path_ =
+ profile->GetPath().Append(chrome::kPrivacyBlacklistFileName);
+ path_provider_ = path_provider;
+
registrar_.Add(this,
NotificationType::EXTENSION_LOADED,
Source<Profile>(profile));
Property changes on: chrome\browser\privacy_blacklist\blacklist_manager.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698