| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index d37dcd200b69aef9e39bda292a709a490c482867..1879aa8f0055e8ab9b5a33381a6500de7b89fb66 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -62,6 +62,7 @@
|
| #include "chrome/browser/profiles/profile_dependency_manager.h"
|
| #include "chrome/browser/profiles/profile_info_cache.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| +#include "chrome/browser/protector/protector.h"
|
| #include "chrome/browser/search_engines/template_url_fetcher.h"
|
| #include "chrome/browser/search_engines/template_url_service.h"
|
| #include "chrome/browser/sessions/session_service_factory.h"
|
| @@ -281,7 +282,8 @@ ProfileImpl::ProfileImpl(const FilePath& path,
|
| checked_instant_promo_(false),
|
| #endif
|
| delegate_(delegate),
|
| - predictor_(NULL) {
|
| + predictor_(NULL),
|
| + protector_(NULL) {
|
| DCHECK(!path.empty()) << "Using an empty path will attempt to write " <<
|
| "profile files to the root directory!";
|
|
|
| @@ -422,6 +424,10 @@ void ProfileImpl::DoFinalInit() {
|
| ChromePluginServiceFilter::GetInstance()->RegisterResourceContext(
|
| PluginPrefs::GetForProfile(this), &GetResourceContext());
|
|
|
| + // Protector depends on the other profile state parts like Prefs or
|
| + // TemplateURLService to be initialized.
|
| + protector_.reset(new protector::Protector(this));
|
| +
|
| // Creation has been finished.
|
| if (delegate_)
|
| delegate_->OnProfileCreated(this, true);
|
|
|