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

Unified Diff: components/policy/core/common/cloud/policy_builder.cc

Issue 108563005: Move the cloud policy protobufs into the component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 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
« no previous file with comments | « components/policy/core/common/cloud/policy_builder.h ('k') | components/policy/proto/PRESUBMIT.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/cloud/policy_builder.cc
diff --git a/components/policy/core/common/cloud/policy_builder.cc b/components/policy/core/common/cloud/policy_builder.cc
index 88ac828ed3a07ad355f3aae77fba8a30dfb61ec7..b6727f5dd72eb9b69f43437dca88b2a1531284c8 100644
--- a/components/policy/core/common/cloud/policy_builder.cc
+++ b/components/policy/core/common/cloud/policy_builder.cc
@@ -7,10 +7,8 @@
#include <vector>
#include "base/stl_util.h"
-#include "chrome/browser/policy/proto/cloud/chrome_extension_policy.pb.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "crypto/signature_creator.h"
-#include "policy/proto/cloud_policy.pb.h"
namespace em = enterprise_management;
@@ -227,15 +225,17 @@ TypedPolicyBuilder<em::CloudPolicySettings>::TypedPolicyBuilder()
policy_data().set_policy_type(dm_protocol::kChromeUserPolicyType);
}
+// Have the instantiation compiled into the module.
+template class TypedPolicyBuilder<em::CloudPolicySettings>;
+
+#if !defined(OS_ANDROID)
template<>
TypedPolicyBuilder<em::ExternalPolicyData>::TypedPolicyBuilder()
: payload_(new em::ExternalPolicyData()) {
policy_data().set_policy_type(dm_protocol::kChromeExtensionPolicyType);
}
-
-// Have the instantiations compiled into the module.
-template class TypedPolicyBuilder<em::CloudPolicySettings>;
template class TypedPolicyBuilder<em::ExternalPolicyData>;
+#endif
} // namespace policy
« no previous file with comments | « components/policy/core/common/cloud/policy_builder.h ('k') | components/policy/proto/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698