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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 11493003: Remove the protector service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix implicit ExtensionSystem -> TemplateURLService dependency Created 8 years 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/test/data/web_database/version_41.sql » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index ab118b7ffa795bacba2e8da41673de9e962d607a..1d2a6f66eb25edc23717a97717f0028336d96de8 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -41,7 +41,6 @@
#include "chrome/browser/prerender/prerender_manager.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/browser/profiles/storage_partition_descriptor.h"
-#include "chrome/browser/protector/protector_service_factory.h"
#include "chrome/browser/search_engines/template_url_fetcher_factory.h"
#include "chrome/browser/speech/chrome_speech_recognition_preferences.h"
#include "chrome/browser/webdata/web_data_service.h"
@@ -555,14 +554,6 @@ policy::PolicyService* TestingProfile::GetPolicyService() {
}
void TestingProfile::SetPrefService(PrefService* prefs) {
-#if defined(ENABLE_PROTECTOR_SERVICE)
- // ProtectorService binds itself very closely to the PrefService at the moment
- // of Profile creation and watches pref changes to update their backup.
- // For tests that replace the PrefService after TestingProfile creation,
- // ProtectorService is disabled to prevent further invalid memory accesses.
- protector::ProtectorServiceFactory::GetInstance()->
- SetTestingFactory(this, NULL);
-#endif
prefs_.reset(prefs);
}
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/test/data/web_database/version_41.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698