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

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

Issue 1126273005: Fixed url parameters for AIDE requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "components/policy/core/common/policy_switches.h" 10 #include "components/policy/core/common/policy_switches.h"
(...skipping 24 matching lines...) Expand all
35 const char kValueRequestRegister[] = "register"; 35 const char kValueRequestRegister[] = "register";
36 const char kValueRequestApiAuthorization[] = "api_authorization"; 36 const char kValueRequestApiAuthorization[] = "api_authorization";
37 const char kValueRequestUnregister[] = "unregister"; 37 const char kValueRequestUnregister[] = "unregister";
38 const char kValueRequestUploadCertificate[] = "cert_upload"; 38 const char kValueRequestUploadCertificate[] = "cert_upload";
39 const char kValueRequestDeviceStateRetrieval[] = "device_state_retrieval"; 39 const char kValueRequestDeviceStateRetrieval[] = "device_state_retrieval";
40 const char kValueRequestUploadStatus[] = "status_upload"; 40 const char kValueRequestUploadStatus[] = "status_upload";
41 const char kValueRequestRemoteCommands[] = "remote_commands"; 41 const char kValueRequestRemoteCommands[] = "remote_commands";
42 const char kValueUserAffiliationManaged[] = "managed"; 42 const char kValueUserAffiliationManaged[] = "managed";
43 const char kValueUserAffiliationNone[] = "none"; 43 const char kValueUserAffiliationNone[] = "none";
44 const char kValueRequestDeviceAttributeUpdatePermission[] = 44 const char kValueRequestDeviceAttributeUpdatePermission[] =
45 "attribute_update_permission"; 45 "device_attribute_update_permission";
46 const char kValueRequestDeviceAttributeUpdate[] = "attribute_update"; 46 const char kValueRequestDeviceAttributeUpdate[] = "device_attribute_update";
47 47
48 const char kChromeDevicePolicyType[] = "google/chromeos/device"; 48 const char kChromeDevicePolicyType[] = "google/chromeos/device";
49 #if defined(OS_CHROMEOS) 49 #if defined(OS_CHROMEOS)
50 const char kChromeUserPolicyType[] = "google/chromeos/user"; 50 const char kChromeUserPolicyType[] = "google/chromeos/user";
51 #elif defined(OS_ANDROID) 51 #elif defined(OS_ANDROID)
52 const char kChromeUserPolicyType[] = "google/android/user"; 52 const char kChromeUserPolicyType[] = "google/android/user";
53 #elif defined(OS_IOS) 53 #elif defined(OS_IOS)
54 const char kChromeUserPolicyType[] = "google/ios/user"; 54 const char kChromeUserPolicyType[] = "google/ios/user";
55 #else 55 #else
56 const char kChromeUserPolicyType[] = "google/chrome/user"; 56 const char kChromeUserPolicyType[] = "google/chrome/user";
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 NOTREACHED(); 144 NOTREACHED();
145 return MANAGEMENT_MODE_LOCAL_OWNER; 145 return MANAGEMENT_MODE_LOCAL_OWNER;
146 } 146 }
147 } 147 }
148 148
149 return policy_data.has_request_token() ? 149 return policy_data.has_request_token() ?
150 MANAGEMENT_MODE_ENTERPRISE_MANAGED : MANAGEMENT_MODE_LOCAL_OWNER; 150 MANAGEMENT_MODE_ENTERPRISE_MANAGED : MANAGEMENT_MODE_LOCAL_OWNER;
151 } 151 }
152 152
153 } // namespace policy 153 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698