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

Side by Side Diff: chrome/browser/chromeos/attestation/attestation_policy_observer.cc

Issue 20873002: Added support for the content protection profile to AttestationFlow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chromeos/attestation/attestation_policy_observer.h" 5 #include "chrome/browser/chromeos/attestation/attestation_policy_observer.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 on_does_not_exist, 182 on_does_not_exist,
183 base::Bind(&AttestationPolicyObserver::Reschedule, 183 base::Bind(&AttestationPolicyObserver::Reschedule,
184 weak_factory_.GetWeakPtr()), 184 weak_factory_.GetWeakPtr()),
185 FROM_HERE)); 185 FROM_HERE));
186 } 186 }
187 187
188 void AttestationPolicyObserver::GetNewCertificate() { 188 void AttestationPolicyObserver::GetNewCertificate() {
189 // We can reuse the dbus callback handler logic. 189 // We can reuse the dbus callback handler logic.
190 attestation_flow_->GetCertificate( 190 attestation_flow_->GetCertificate(
191 PROFILE_ENTERPRISE_MACHINE_CERTIFICATE, 191 PROFILE_ENTERPRISE_MACHINE_CERTIFICATE,
192 "", // Not used.
Mattias Nissler (ping if slow) 2013/07/29 09:19:25 nit: use std::string()
dkrahn 2013/08/08 01:29:29 Done.
193 "", // Not used.
192 true, // Force a new key to be generated. 194 true, // Force a new key to be generated.
193 base::Bind(DBusStringCallback, 195 base::Bind(DBusStringCallback,
194 base::Bind(&AttestationPolicyObserver::UploadCertificate, 196 base::Bind(&AttestationPolicyObserver::UploadCertificate,
195 weak_factory_.GetWeakPtr()), 197 weak_factory_.GetWeakPtr()),
196 base::Bind(&AttestationPolicyObserver::Reschedule, 198 base::Bind(&AttestationPolicyObserver::Reschedule,
197 weak_factory_.GetWeakPtr()), 199 weak_factory_.GetWeakPtr()),
198 FROM_HERE, 200 FROM_HERE,
199 DBUS_METHOD_CALL_SUCCESS)); 201 DBUS_METHOD_CALL_SUCCESS));
200 } 202 }
201 203
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 base::Bind(&AttestationPolicyObserver::Start, 305 base::Bind(&AttestationPolicyObserver::Start,
304 weak_factory_.GetWeakPtr()), 306 weak_factory_.GetWeakPtr()),
305 base::TimeDelta::FromSeconds(retry_delay_)); 307 base::TimeDelta::FromSeconds(retry_delay_));
306 } else { 308 } else {
307 LOG(WARNING) << "AttestationPolicyObserver: Retry limit exceeded."; 309 LOG(WARNING) << "AttestationPolicyObserver: Retry limit exceeded.";
308 } 310 }
309 } 311 }
310 312
311 } // namespace attestation 313 } // namespace attestation
312 } // namespace chromeos 314 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698