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

Side by Side Diff: chrome/browser/policy/user_policy_identity_strategy.cc

Issue 6821045: Connect enrollment screen to cloud policy subsystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests... Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/policy/user_policy_identity_strategy.h ('k') | 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) 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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/user_policy_identity_strategy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698