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

Unified Diff: chrome/browser/metrics/chrome_metrics_service_client.cc

Issue 2945023002: Introduce profile for lock screen apps (Closed)
Patch Set: . Created 3 years, 6 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/metrics/chrome_metrics_service_client.cc
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.cc b/chrome/browser/metrics/chrome_metrics_service_client.cc
index 75cefcf652152987818957b4125ebfcc216825c7..f416ab9ac3e232751aeb52c33469516f23393ff0 100644
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
@@ -939,8 +939,10 @@ void ChromeMetricsServiceClient::RegisterForProfileEvents(Profile* profile) {
&BindableGetUkmService, weak_ptr_factory_.GetWeakPtr())));
#if defined(OS_CHROMEOS)
// Ignore the signin profile for sync disables / history deletion.
- if (chromeos::ProfileHelper::IsSigninProfile(profile))
+ if (chromeos::ProfileHelper::IsSigninProfile(profile) ||
+ chromeos::ProfileHelper::IsLockScreenAppProfile(profile)) {
return;
+ }
#endif
history::HistoryService* history_service =
HistoryServiceFactory::GetForProfile(profile,

Powered by Google App Engine
This is Rietveld 408576698