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

Side by Side Diff: chromeos/attestation/attestation_flow.cc

Issue 2860963002: Spell success correctly. (Closed)
Patch Set: Created 3 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
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 "chromeos/attestation/attestation_flow.h" 5 #include "chromeos/attestation/attestation_flow.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 15 matching lines...) Expand all
26 constexpr uint16_t kReadyTimeoutInSeconds = 60; 26 constexpr uint16_t kReadyTimeoutInSeconds = 60;
27 27
28 // Delay before checking again whether the TPM has been prepared for 28 // Delay before checking again whether the TPM has been prepared for
29 // attestation. 29 // attestation.
30 constexpr uint16_t kRetryDelayInMilliseconds = 300; 30 constexpr uint16_t kRetryDelayInMilliseconds = 300;
31 31
32 // Redirects to one of three callbacks based on a boolean value and dbus call 32 // Redirects to one of three callbacks based on a boolean value and dbus call
33 // status. 33 // status.
34 // 34 //
35 // Parameters 35 // Parameters
36 // on_true - Called when status=succes and value=true. 36 // on_true - Called when status=success and value=true.
37 // on_false - Called when status=success and value=false. 37 // on_false - Called when status=success and value=false.
38 // on_fail - Called when status=failure. 38 // on_fail - Called when status=failure.
39 // status - The D-Bus operation status. 39 // status - The D-Bus operation status.
40 // value - The value returned by the D-Bus operation. 40 // value - The value returned by the D-Bus operation.
41 void DBusBoolRedirectCallback(const base::Closure& on_true, 41 void DBusBoolRedirectCallback(const base::Closure& on_true,
42 const base::Closure& on_false, 42 const base::Closure& on_false,
43 const base::Closure& on_fail, 43 const base::Closure& on_fail,
44 const std::string& on_fail_message, 44 const std::string& on_fail_message,
45 DBusMethodCallStatus status, 45 DBusMethodCallStatus status,
46 bool value) { 46 bool value) {
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 } 328 }
329 329
330 ServerProxy::~ServerProxy() {} 330 ServerProxy::~ServerProxy() {}
331 331
332 PrivacyCAType ServerProxy::GetType() { 332 PrivacyCAType ServerProxy::GetType() {
333 return DEFAULT_PCA; 333 return DEFAULT_PCA;
334 } 334 }
335 335
336 } // namespace attestation 336 } // namespace attestation
337 } // namespace chromeos 337 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698