Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cdd6209 authored by Christine Franks's avatar Christine Franks Committed by Android (Google) Code Review
Browse files

Merge "Add TRON counter for demo user creation"

parents 4f64bd56 88220560
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -223,6 +223,7 @@ public class UserManagerService extends IUserManager.Stub {
    // Tron counters
    private static final String TRON_GUEST_CREATED = "users_guest_created";
    private static final String TRON_USER_CREATED = "users_user_created";
    private static final String TRON_DEMO_CREATED = "users_demo_created";

    private final Context mContext;
    private final PackageManagerService mPm;
@@ -2523,7 +2524,8 @@ public class UserManagerService extends IUserManager.Stub {
            addedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
            mContext.sendBroadcastAsUser(addedIntent, UserHandle.ALL,
                    android.Manifest.permission.MANAGE_USERS);
            MetricsLogger.count(mContext, isGuest ? TRON_GUEST_CREATED : TRON_USER_CREATED, 1);
            MetricsLogger.count(mContext, isGuest ? TRON_GUEST_CREATED
                    : (isDemo ? TRON_DEMO_CREATED : TRON_USER_CREATED), 1);
        } finally {
            Binder.restoreCallingIdentity(ident);
        }