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

Side by Side Diff: chrome/browser/signin/easy_unlock_service.h

Issue 1023823002: Report Bluetooth adapter status to UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: disable BT after start on systems not yet supported Created 5 years, 9 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 | « no previous file | chrome/browser/signin/easy_unlock_service.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/signin/easy_unlock_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698