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

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

Issue 1022233002: [Smart Lock] Add UMA metrics to measure duration of unlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hook into the existing PowerMonitor observer Created 5 years, 8 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 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 // Service type specific tests for whether the service is allowed. Returns 226 // Service type specific tests for whether the service is allowed. Returns
227 // false if service is not allowed. If true is returned, the service may still 227 // false if service is not allowed. If true is returned, the service may still
228 // not be allowed if common tests fail (e.g. if Bluetooth is not available). 228 // not be allowed if common tests fail (e.g. if Bluetooth is not available).
229 virtual bool IsAllowedInternal() const = 0; 229 virtual bool IsAllowedInternal() const = 0;
230 230
231 // Called while processing a user gesture to unlock the screen using Easy 231 // Called while processing a user gesture to unlock the screen using Easy
232 // Unlock, just before the screen is unlocked. 232 // Unlock, just before the screen is unlocked.
233 virtual void OnWillFinalizeUnlock(bool success) = 0; 233 virtual void OnWillFinalizeUnlock(bool success) = 0;
234 234
235 // Called when the local device resumes after a suspend.
236 virtual void OnSuspendDone() = 0;
237
235 // KeyedService override: 238 // KeyedService override:
236 void Shutdown() override; 239 void Shutdown() override;
237 240
238 // Exposes the profile to which the service is attached to subclasses. 241 // Exposes the profile to which the service is attached to subclasses.
239 const Profile* profile() const { return profile_; } 242 const Profile* profile() const { return profile_; }
240 Profile* profile() { return profile_; } 243 Profile* profile() { return profile_; }
241 244
242 // Opens an Easy Unlock Setup app window. 245 // Opens an Easy Unlock Setup app window.
243 void OpenSetupApp(); 246 void OpenSetupApp();
244 247
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 bool tpm_key_checked_; 341 bool tpm_key_checked_;
339 342
340 ObserverList<EasyUnlockServiceObserver> observers_; 343 ObserverList<EasyUnlockServiceObserver> observers_;
341 344
342 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; 345 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
343 346
344 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); 347 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);
345 }; 348 };
346 349
347 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ 350 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_metrics.cc ('k') | chrome/browser/signin/easy_unlock_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698