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

Unified Diff: chrome/browser/signin/screenlock_bridge.cc

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/screenlock_bridge.cc
diff --git a/chrome/browser/signin/screenlock_bridge.cc b/chrome/browser/signin/screenlock_bridge.cc
index 586ed485f5f16e698a2309f6f84f39bcde7a5d96..57eb5161ed2535e1e05ba6b6f60e7de430e9e4b4 100644
--- a/chrome/browser/signin/screenlock_bridge.cc
+++ b/chrome/browser/signin/screenlock_bridge.cc
@@ -60,7 +60,8 @@ ScreenlockBridge* ScreenlockBridge::Get() {
ScreenlockBridge::UserPodCustomIconOptions::UserPodCustomIconOptions()
: autoshow_tooltip_(false),
- hardlock_on_click_(false) {
+ hardlock_on_click_(false),
+ is_trial_run_(false) {
}
ScreenlockBridge::UserPodCustomIconOptions::~UserPodCustomIconOptions() {}
@@ -84,6 +85,9 @@ ScreenlockBridge::UserPodCustomIconOptions::ToDictionaryValue() const {
if (hardlock_on_click_)
result->SetBoolean("hardlockOnClick", true);
+ if (is_trial_run_)
+ result->SetBoolean("isTrialRun", true);
+
return result.Pass();
}
@@ -108,6 +112,10 @@ void ScreenlockBridge::UserPodCustomIconOptions::SetHardlockOnClick() {
hardlock_on_click_ = true;
}
+void ScreenlockBridge::UserPodCustomIconOptions::SetTrialRun() {
+ is_trial_run_ = true;
+}
+
// static
std::string ScreenlockBridge::GetAuthenticatedUserEmail(Profile* profile) {
// |profile| has to be a signed-in profile with SigninManager already
« no previous file with comments | « chrome/browser/signin/screenlock_bridge.h ('k') | chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698