OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/policy/user_policy_identity_strategy.h" | 5 #include "chrome/browser/policy/user_policy_identity_strategy.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "chrome/browser/browser_signin.h" | 8 #include "chrome/browser/browser_signin.h" |
9 #include "chrome/browser/net/gaia/token_service.h" | 9 #include "chrome/browser/net/gaia/token_service.h" |
10 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 10 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 159 |
160 std::string UserPolicyIdentityStrategy::GetDeviceToken() { | 160 std::string UserPolicyIdentityStrategy::GetDeviceToken() { |
161 return device_token_; | 161 return device_token_; |
162 } | 162 } |
163 | 163 |
164 std::string UserPolicyIdentityStrategy::GetDeviceID() { | 164 std::string UserPolicyIdentityStrategy::GetDeviceID() { |
165 return device_id_; | 165 return device_id_; |
166 } | 166 } |
167 | 167 |
168 std::string UserPolicyIdentityStrategy::GetMachineID() { | 168 std::string UserPolicyIdentityStrategy::GetMachineID() { |
169 return ""; | 169 return std::string(); |
| 170 } |
| 171 |
| 172 std::string UserPolicyIdentityStrategy::GetMachineModel() { |
| 173 return std::string(); |
170 } | 174 } |
171 | 175 |
172 em::DeviceRegisterRequest_Type | 176 em::DeviceRegisterRequest_Type |
173 UserPolicyIdentityStrategy::GetPolicyRegisterType() { | 177 UserPolicyIdentityStrategy::GetPolicyRegisterType() { |
174 return em::DeviceRegisterRequest::USER; | 178 return em::DeviceRegisterRequest::USER; |
175 } | 179 } |
176 | 180 |
177 std::string UserPolicyIdentityStrategy::GetPolicyType() { | 181 std::string UserPolicyIdentityStrategy::GetPolicyType() { |
178 return kChromeUserPolicyType; | 182 return kChromeUserPolicyType; |
179 } | 183 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 } else if (type == NotificationType::GOOGLE_SIGNIN_SUCCESSFUL) { | 253 } else if (type == NotificationType::GOOGLE_SIGNIN_SUCCESSFUL) { |
250 if (profile_ == Source<Profile>(source).ptr()) | 254 if (profile_ == Source<Profile>(source).ptr()) |
251 CheckAndTriggerFetch(); | 255 CheckAndTriggerFetch(); |
252 #endif | 256 #endif |
253 } else { | 257 } else { |
254 NOTREACHED(); | 258 NOTREACHED(); |
255 } | 259 } |
256 } | 260 } |
257 | 261 |
258 } // namespace policy | 262 } // namespace policy |
OLD | NEW |