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

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

Issue 1258313002: Send GCM id to DMServer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adopt upstream protobuf changes Created 5 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 "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 23 matching lines...) Expand all
34 const char kValueRequestRegister[] = "register"; 34 const char kValueRequestRegister[] = "register";
35 const char kValueRequestApiAuthorization[] = "api_authorization"; 35 const char kValueRequestApiAuthorization[] = "api_authorization";
36 const char kValueRequestUnregister[] = "unregister"; 36 const char kValueRequestUnregister[] = "unregister";
37 const char kValueRequestUploadCertificate[] = "cert_upload"; 37 const char kValueRequestUploadCertificate[] = "cert_upload";
38 const char kValueRequestDeviceStateRetrieval[] = "device_state_retrieval"; 38 const char kValueRequestDeviceStateRetrieval[] = "device_state_retrieval";
39 const char kValueRequestUploadStatus[] = "status_upload"; 39 const char kValueRequestUploadStatus[] = "status_upload";
40 const char kValueRequestRemoteCommands[] = "remote_commands"; 40 const char kValueRequestRemoteCommands[] = "remote_commands";
41 const char kValueRequestDeviceAttributeUpdatePermission[] = 41 const char kValueRequestDeviceAttributeUpdatePermission[] =
42 "device_attribute_update_permission"; 42 "device_attribute_update_permission";
43 const char kValueRequestDeviceAttributeUpdate[] = "device_attribute_update"; 43 const char kValueRequestDeviceAttributeUpdate[] = "device_attribute_update";
44 const char kValueRequestGcmIdUpdate[] = "gcm_id_update";
44 45
45 const char kChromeDevicePolicyType[] = "google/chromeos/device"; 46 const char kChromeDevicePolicyType[] = "google/chromeos/device";
46 #if defined(OS_CHROMEOS) 47 #if defined(OS_CHROMEOS)
47 const char kChromeUserPolicyType[] = "google/chromeos/user"; 48 const char kChromeUserPolicyType[] = "google/chromeos/user";
48 #elif defined(OS_ANDROID) 49 #elif defined(OS_ANDROID)
49 const char kChromeUserPolicyType[] = "google/android/user"; 50 const char kChromeUserPolicyType[] = "google/android/user";
50 #elif defined(OS_IOS) 51 #elif defined(OS_IOS)
51 const char kChromeUserPolicyType[] = "google/ios/user"; 52 const char kChromeUserPolicyType[] = "google/ios/user";
52 #else 53 #else
53 const char kChromeUserPolicyType[] = "google/chrome/user"; 54 const char kChromeUserPolicyType[] = "google/chrome/user";
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 NOTREACHED(); 133 NOTREACHED();
133 return MANAGEMENT_MODE_LOCAL_OWNER; 134 return MANAGEMENT_MODE_LOCAL_OWNER;
134 } 135 }
135 } 136 }
136 137
137 return policy_data.has_request_token() ? 138 return policy_data.has_request_token() ?
138 MANAGEMENT_MODE_ENTERPRISE_MANAGED : MANAGEMENT_MODE_LOCAL_OWNER; 139 MANAGEMENT_MODE_ENTERPRISE_MANAGED : MANAGEMENT_MODE_LOCAL_OWNER;
139 } 140 }
140 141
141 } // namespace policy 142 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698