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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_constants.cc

Issue 2273783002: Move policy generated files to components/policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missed headers Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/policy/core/common/cloud/cloud_policy_constants.h" 5 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "components/policy/core/common/policy_switches.h" 12 #include "components/policy/core/common/policy_switches.h"
13 #include "policy/proto/device_management_backend.pb.h" 13 #include "components/policy/proto/device_management_backend.pb.h"
14 14
15 namespace em = enterprise_management; 15 namespace em = enterprise_management;
16 16
17 namespace policy { 17 namespace policy {
18 18
19 // Constants related to the device management protocol. 19 // Constants related to the device management protocol.
20 namespace dm_protocol { 20 namespace dm_protocol {
21 21
22 // Name constants for URL query parameters. 22 // Name constants for URL query parameters.
23 const char kParamAgent[] = "agent"; 23 const char kParamAgent[] = "agent";
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 96 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
97 if (command_line->HasSwitch(switches::kDisablePolicyKeyVerification)) { 97 if (command_line->HasSwitch(switches::kDisablePolicyKeyVerification)) {
98 return std::string(); 98 return std::string();
99 } else { 99 } else {
100 return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey), 100 return std::string(reinterpret_cast<const char*>(kPolicyVerificationKey),
101 sizeof(kPolicyVerificationKey)); 101 sizeof(kPolicyVerificationKey));
102 } 102 }
103 } 103 }
104 104
105 } // namespace policy 105 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698