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

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

Issue 12183017: Verify the signature on user cloud policy downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment Created 7 years, 10 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
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 8a95e429b786a791dd2b188bed8eb23794c125fc..20f8b07bca7385dbf273022cf629746c13457d10 100644
--- a/chrome/browser/policy/browser_policy_connector.h
+++ b/chrome/browser/policy/browser_policy_connector.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "base/file_path.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/policy/cloud_policy_constants.h"
@@ -124,6 +125,10 @@ class BrowserPolicyConnector {
}
#endif
+ // Sets a root path override for tests. Absolute paths used to construct
+ // internal objects will be relative to |root_path|.
+ static void SetRootPathForTesting(const FilePath::CharType* root_path);
Joao da Silva 2013/02/06 00:34:38 Better ideas welcome :-) I don't totally dislike
Mattias Nissler (ping if slow) 2013/02/06 17:58:25 How about getting the path from PathService and in
Joao da Silva 2013/02/07 16:32:00 Good idea, done.
+
// Allows setting a DeviceManagementService (for injecting mocks in
// unit tests).
void SetDeviceManagementServiceForTesting(
« no previous file with comments | « no previous file | chrome/browser/policy/browser_policy_connector.cc » ('j') | chrome/browser/policy/cloud_policy_browsertest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698