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

Side by Side Diff: chrome/browser/policy/cloud/user_cloud_policy_manager.cc

Issue 14843009: Wire the device requisition parameter for enterprise enrollment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mock Created 7 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 | Annotate | Revision Log
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 "chrome/browser/policy/cloud/user_cloud_policy_manager.h" 5 #include "chrome/browser/policy/cloud/user_cloud_policy_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" 9 #include "chrome/browser/policy/cloud/cloud_policy_constants.h"
10 #include "chrome/browser/policy/cloud/cloud_policy_service.h" 10 #include "chrome/browser/policy/cloud/cloud_policy_service.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 bool UserCloudPolicyManager::IsClientRegistered() const { 57 bool UserCloudPolicyManager::IsClientRegistered() const {
58 return client() && client()->is_registered(); 58 return client() && client()->is_registered();
59 } 59 }
60 60
61 void UserCloudPolicyManager::RegisterClient(const std::string& access_token) { 61 void UserCloudPolicyManager::RegisterClient(const std::string& access_token) {
62 DCHECK(client()) << "Callers must invoke Initialize() first"; 62 DCHECK(client()) << "Callers must invoke Initialize() first";
63 if (!client()->is_registered()) { 63 if (!client()->is_registered()) {
64 DVLOG(1) << "Registering client with access token: " << access_token; 64 DVLOG(1) << "Registering client with access token: " << access_token;
65 client()->Register(em::DeviceRegisterRequest::BROWSER, 65 client()->Register(em::DeviceRegisterRequest::BROWSER,
66 access_token, std::string(), false); 66 access_token, std::string(), false, std::string());
67 } 67 }
68 } 68 }
69 69
70 } // namespace policy 70 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/mock_cloud_policy_client.h ('k') | chrome/browser/policy/cloud/user_policy_signin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698