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

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

Issue 9233008: Flag auto-enrollment register requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 11 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/browser_policy_connector.h" 5 #include "chrome/browser/policy/browser_policy_connector.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 return recommended_platform_provider_.get(); 141 return recommended_platform_provider_.get();
142 } 142 }
143 143
144 ConfigurationPolicyProvider* 144 ConfigurationPolicyProvider*
145 BrowserPolicyConnector::GetRecommendedCloudProvider() const { 145 BrowserPolicyConnector::GetRecommendedCloudProvider() const {
146 return recommended_cloud_provider_.get(); 146 return recommended_cloud_provider_.get();
147 } 147 }
148 148
149 void BrowserPolicyConnector::RegisterForDevicePolicy( 149 void BrowserPolicyConnector::RegisterForDevicePolicy(
150 const std::string& owner_email, 150 const std::string& owner_email,
151 const std::string& token) { 151 const std::string& token,
152 bool known_machine_id) {
152 #if defined(OS_CHROMEOS) 153 #if defined(OS_CHROMEOS)
153 if (device_data_store_.get()) { 154 if (device_data_store_.get()) {
154 device_data_store_->set_user_name(owner_email); 155 device_data_store_->set_user_name(owner_email);
156 device_data_store_->set_known_machine_id(known_machine_id);
155 device_data_store_->SetOAuthToken(token); 157 device_data_store_->SetOAuthToken(token);
156 } 158 }
157 #endif 159 #endif
158 } 160 }
159 161
160 bool BrowserPolicyConnector::IsEnterpriseManaged() { 162 bool BrowserPolicyConnector::IsEnterpriseManaged() {
161 #if defined(OS_CHROMEOS) 163 #if defined(OS_CHROMEOS)
162 return install_attributes_.get() && install_attributes_->IsEnterpriseDevice(); 164 return install_attributes_.get() && install_attributes_->IsEnterpriseDevice();
163 #else 165 #else
164 return false; 166 return false;
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 config_dir_path.Append(FILE_PATH_LITERAL("recommended"))); 488 config_dir_path.Append(FILE_PATH_LITERAL("recommended")));
487 } else { 489 } else {
488 return NULL; 490 return NULL;
489 } 491 }
490 #else 492 #else
491 return NULL; 493 return NULL;
492 #endif 494 #endif
493 } 495 }
494 496
495 } // namespace policy 497 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.h ('k') | chrome/browser/policy/cloud_policy_data_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698