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

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

Issue 935303002: [Smart Lock] Measure clicks on the lock icon during Easy Unlock's trial run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 void HandleAuthFailure(const std::string& user_id); 186 void HandleAuthFailure(const std::string& user_id);
187 187
188 // Checks the consistency between pairing data and cryptohome keys. Set 188 // Checks the consistency between pairing data and cryptohome keys. Set
189 // hardlock state if the two do not match. 189 // hardlock state if the two do not match.
190 void CheckCryptohomeKeysAndMaybeHardlock(); 190 void CheckCryptohomeKeysAndMaybeHardlock();
191 191
192 // Marks the Easy Unlock screen lock state as the one associated with the 192 // Marks the Easy Unlock screen lock state as the one associated with the
193 // trial run initiated by Easy Unlock app. 193 // trial run initiated by Easy Unlock app.
194 void SetTrialRun(); 194 void SetTrialRun();
195 195
196 // Records that the user clicked on the lock icon during the trial run
197 // initiated by the Easy Unlock app.
198 void RecordClickOnLockIcon();
199
196 void AddObserver(EasyUnlockServiceObserver* observer); 200 void AddObserver(EasyUnlockServiceObserver* observer);
197 void RemoveObserver(EasyUnlockServiceObserver* observer); 201 void RemoveObserver(EasyUnlockServiceObserver* observer);
198 202
199 protected: 203 protected:
200 explicit EasyUnlockService(Profile* profile); 204 explicit EasyUnlockService(Profile* profile);
201 ~EasyUnlockService() override; 205 ~EasyUnlockService() override;
202 206
203 // Does a service type specific initialization. 207 // Does a service type specific initialization.
204 virtual void InitializeInternal() = 0; 208 virtual void InitializeInternal() = 0;
205 209
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 bool tpm_key_checked_; 324 bool tpm_key_checked_;
321 325
322 ObserverList<EasyUnlockServiceObserver> observers_; 326 ObserverList<EasyUnlockServiceObserver> observers_;
323 327
324 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_; 328 base::WeakPtrFactory<EasyUnlockService> weak_ptr_factory_;
325 329
326 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService); 330 DISALLOW_COPY_AND_ASSIGN(EasyUnlockService);
327 }; 331 };
328 332
329 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_ 333 #endif // CHROME_BROWSER_SIGNIN_EASY_UNLOCK_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_screenlock_state_handler_unittest.cc ('k') | chrome/browser/signin/easy_unlock_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698