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

Commit 50dcdd0d authored by Dmitry Dementyev's avatar Dmitry Dementyev Committed by android-build-merger
Browse files

Merge \\"Include correct account id in action_called_account_remove log...

Merge \\"Include correct account id in action_called_account_remove log message.\\" into nyc-dev am: 0544462b
am: d87be076

Change-Id: I241865f791d8da241e17aa0dfa245b8eb5ba7ada
parents bdbcb117 d87be076
Loading
Loading
Loading
Loading
+18 −4
Original line number Diff line number Diff line
@@ -1553,9 +1553,15 @@ public class AccountManagerService
                }
            }
        }

        logRecord(accounts, DebugDbHelper.ACTION_CALLED_ACCOUNT_REMOVE, TABLE_ACCOUNTS);

        SQLiteDatabase db = accounts.openHelper.getReadableDatabase();
        final long accountId = getAccountIdLocked(db, account);
        logRecord(
                db,
                DebugDbHelper.ACTION_CALLED_ACCOUNT_REMOVE,
                TABLE_ACCOUNTS,
                accountId,
                accounts,
                callingUid);
        try {
            new RemoveAccountSession(accounts, response, account, expectActivityLaunch).bind();
        } finally {
@@ -1587,7 +1593,15 @@ public class AccountManagerService
            throw new SecurityException(msg);
        }
        UserAccounts accounts = getUserAccountsForCaller();
        logRecord(accounts, DebugDbHelper.ACTION_CALLED_ACCOUNT_REMOVE, TABLE_ACCOUNTS);
        SQLiteDatabase db = accounts.openHelper.getReadableDatabase();
        final long accountId = getAccountIdLocked(db, account);
        logRecord(
                db,
                DebugDbHelper.ACTION_CALLED_ACCOUNT_REMOVE,
                TABLE_ACCOUNTS,
                accountId,
                accounts,
                callingUid);
        long identityToken = clearCallingIdentity();
        try {
            return removeAccountInternal(accounts, account, callingUid);