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

Unified Diff: chrome/browser/prefs/pref_service_syncable_factory.cc

Issue 1343743002: Remove dependency of PrefSyncableServiceFactory on //chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pref_service_syncable
Patch Set: Rebase Created 5 years, 3 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
« no previous file with comments | « chrome/browser/prefs/pref_service_syncable_factory.h ('k') | chrome/browser/prefs/proxy_policy_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_service_syncable_factory.cc
diff --git a/chrome/browser/prefs/pref_service_syncable_factory.cc b/chrome/browser/prefs/pref_service_syncable_factory.cc
index f5470377b432fe1552743da9d7a5b0b752e7b7b1..11760bf9f804c80de5d3f58e314d723536e90a25 100644
--- a/chrome/browser/prefs/pref_service_syncable_factory.cc
+++ b/chrome/browser/prefs/pref_service_syncable_factory.cc
@@ -8,8 +8,6 @@
#include "base/prefs/pref_notifier_impl.h"
#include "base/prefs/pref_value_store.h"
#include "base/trace_event/trace_event.h"
-#include "chrome/browser/browser_process.h"
-#include "chrome/browser/prefs/command_line_pref_store.h"
#include "chrome/browser/prefs/pref_service_syncable.h"
#include "components/pref_registry/pref_registry_syncable.h"
@@ -28,29 +26,20 @@ PrefServiceSyncableFactory::~PrefServiceSyncableFactory() {
#if defined(ENABLE_CONFIGURATION_POLICY)
void PrefServiceSyncableFactory::SetManagedPolicies(
- policy::PolicyService* service) {
- set_managed_prefs(
- new policy::ConfigurationPolicyPrefStore(
- service,
- g_browser_process->browser_policy_connector()->GetHandlerList(),
- policy::POLICY_LEVEL_MANDATORY));
+ policy::PolicyService* service,
+ policy::BrowserPolicyConnector* connector) {
+ set_managed_prefs(new policy::ConfigurationPolicyPrefStore(
+ service, connector->GetHandlerList(), policy::POLICY_LEVEL_MANDATORY));
}
void PrefServiceSyncableFactory::SetRecommendedPolicies(
- policy::PolicyService* service) {
- set_recommended_prefs(
- new policy::ConfigurationPolicyPrefStore(
- service,
- g_browser_process->browser_policy_connector()->GetHandlerList(),
- policy::POLICY_LEVEL_RECOMMENDED));
+ policy::PolicyService* service,
+ policy::BrowserPolicyConnector* connector) {
+ set_recommended_prefs(new policy::ConfigurationPolicyPrefStore(
+ service, connector->GetHandlerList(), policy::POLICY_LEVEL_RECOMMENDED));
}
#endif
-void PrefServiceSyncableFactory::SetCommandLine(
- base::CommandLine* command_line) {
- set_command_line_prefs(new CommandLinePrefStore(command_line));
-}
-
scoped_ptr<PrefServiceSyncable> PrefServiceSyncableFactory::CreateSyncable(
user_prefs::PrefRegistrySyncable* pref_registry) {
TRACE_EVENT0("browser", "PrefServiceSyncableFactory::CreateSyncable");
« no previous file with comments | « chrome/browser/prefs/pref_service_syncable_factory.h ('k') | chrome/browser/prefs/proxy_policy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698