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

Side by Side Diff: chromeos/tpm_password_fetcher.h

Issue 552323003: Changing the order of initialization WeakPtrFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chromeos/login/auth/online_attempt.cc ('k') | chromeos/tpm_password_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROMEOS_TPM_PASSWORD_FETCHER_H_ 5 #ifndef CHROMEOS_TPM_PASSWORD_FETCHER_H_
6 #define CHROMEOS_TPM_PASSWORD_FETCHER_H_ 6 #define CHROMEOS_TPM_PASSWORD_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 // Used to implement Fetch(). 38 // Used to implement Fetch().
39 void OnTpmIsReady(DBusMethodCallStatus call_status, bool tpm_is_ready); 39 void OnTpmIsReady(DBusMethodCallStatus call_status, bool tpm_is_ready);
40 40
41 // Used to implement Fetch(). 41 // Used to implement Fetch().
42 void OnTpmGetPassword(DBusMethodCallStatus call_status, 42 void OnTpmGetPassword(DBusMethodCallStatus call_status,
43 const std::string& password); 43 const std::string& password);
44 44
45 // Posts a task to call Fetch() later. 45 // Posts a task to call Fetch() later.
46 void RescheduleFetch(); 46 void RescheduleFetch();
47 47
48 TpmPasswordFetcherDelegate* delegate_;
49
48 base::WeakPtrFactory<TpmPasswordFetcher> weak_factory_; 50 base::WeakPtrFactory<TpmPasswordFetcher> weak_factory_;
49 TpmPasswordFetcherDelegate* delegate_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(TpmPasswordFetcher); 52 DISALLOW_COPY_AND_ASSIGN(TpmPasswordFetcher);
52 }; 53 };
53 54
54 } // namespace chromeos 55 } // namespace chromeos
55 56
56 #endif // CHROMEOS_TPM_PASSWORD_FETCHER_H_ 57 #endif // CHROMEOS_TPM_PASSWORD_FETCHER_H_
OLDNEW
« no previous file with comments | « chromeos/login/auth/online_attempt.cc ('k') | chromeos/tpm_password_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698