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

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

Issue 11444029: Added UserPolicySigninService::FetchPolicyForSignedInUser(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
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
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | chrome/browser/policy/cloud_policy_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698