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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 8342049: Added Protector, hooked up DSE verification with error bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved check to Protector, work with search engines via TemplateURLService Created 9 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698