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

Unified Diff: chrome/browser/policy/profile_policy_connector_factory.h

Issue 549193002: Skip managed bookmarks at the BookmarkChangeProcessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 6 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 | « no previous file | chrome/browser/policy/profile_policy_connector_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/profile_policy_connector_factory.h
diff --git a/chrome/browser/policy/profile_policy_connector_factory.h b/chrome/browser/policy/profile_policy_connector_factory.h
index 9442b49fb4520cf5922fd0ebac8c29794157161f..d73378410a2d548c829ea967fd1ca7bb5f3cf25e 100644
--- a/chrome/browser/policy/profile_policy_connector_factory.h
+++ b/chrome/browser/policy/profile_policy_connector_factory.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_
#define CHROME_BROWSER_POLICY_PROFILE_POLICY_CONNECTOR_FACTORY_H_
+#include <list>
#include <map>
#include "base/basictypes.h"
@@ -26,6 +27,7 @@ class BrowserContext;
namespace policy {
+class ConfigurationPolicyProvider;
class ProfilePolicyConnector;
// Creates ProfilePolicyConnectors for Profiles, which manage the common
@@ -56,6 +58,11 @@ class ProfilePolicyConnectorFactory : public BrowserContextKeyedBaseFactory {
void SetServiceForTesting(Profile* profile,
ProfilePolicyConnector* connector);
+ // The next Profile to call CreateForProfile() will get a PolicyService
+ // with |provider| as its sole policy provider. This can be called multiple
+ // times to override the policy providers for more than 1 Profile.
+ void PushProviderForTesting(ConfigurationPolicyProvider* provider);
+
private:
friend struct DefaultSingletonTraits<ProfilePolicyConnectorFactory>;
@@ -80,6 +87,7 @@ class ProfilePolicyConnectorFactory : public BrowserContextKeyedBaseFactory {
typedef std::map<Profile*, ProfilePolicyConnector*> ConnectorMap;
ConnectorMap connectors_;
+ std::list<ConfigurationPolicyProvider*> test_providers_;
DISALLOW_COPY_AND_ASSIGN(ProfilePolicyConnectorFactory);
};
« no previous file with comments | « no previous file | chrome/browser/policy/profile_policy_connector_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698