Chromium Code Reviews| Index: chrome/browser/policy/browser_policy_connector.h |
| diff --git a/chrome/browser/policy/browser_policy_connector.h b/chrome/browser/policy/browser_policy_connector.h |
| index 8ebbd2dc545bab6d40df7308c9ed861c285e2e63..e109b813ecc730893554c8dd0862dc699c078e40 100644 |
| --- a/chrome/browser/policy/browser_policy_connector.h |
| +++ b/chrome/browser/policy/browser_policy_connector.h |
| @@ -172,6 +172,11 @@ class BrowserPolicyConnector : public content::NotificationObserver { |
| } |
| #endif |
| + // Allows setting a DeviceManagementService (for injecting mocks in |
| + // unit tests). |
| + void SetDeviceManagementServiceForTest( |
|
Mattias Nissler (ping if slow)
2012/12/07 15:20:45
Please make naming consistent with SetPolicyProvid
Andrew T Wilson (Slow)
2012/12/07 17:34:29
Done.
|
| + scoped_ptr<DeviceManagementService> service); |
| + |
| // Sets a |provider| that will be included in PolicyServices returned by |
| // CreatePolicyService. This is a static method because local state is |
| // created immediately after the connector, and tests don't have a chance to |