Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 6 #define CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 324 | 324 |
| 325 // Whether the service has been shut down. | 325 // Whether the service has been shut down. |
| 326 bool shut_down_; | 326 bool shut_down_; |
| 327 | 327 |
| 328 bool tpm_key_checked_; | 328 bool tpm_key_checked_; |
| 329 | 329 |
| 330 ObserverList<EasyUnlockServiceObserver> observers_; | 330 ObserverList<EasyUnlockServiceObserver> observers_; |
| 331 | 331 |
| 332 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; | 332 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; |
| 333 | 333 |
| 334 // Whether we've already passed Bluetooth availability information to UMA. | |
| 335 // This is static because there may be multiple instances and we want to | |
| 336 // report this system-level stat only once per run of Chrome. | |
| 337 static bool bluetooth_adapter_has_been_reported; | |
|
xiyuan
2015/03/20 19:19:31
How about declare this flag as a function scoped s
bcwhite
2015/03/20 20:28:26
Makes sense. Done.
| |
| 338 | |
| 334 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); | 339 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); |
| 335 }; | 340 }; |
| 336 | 341 |
| 337 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ | 342 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ |
| OLD | NEW |