mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 744794 - Remove password debugging code. r=trivial
This commit is contained in:
parent
20840b65ba
commit
1cd028f9ae
@ -62,7 +62,6 @@ public class PasswordsRepositorySession extends
|
||||
this.passwordsHelper = new QueryHelper(context, BrowserContractHelpers.PASSWORDS_CONTENT_URI, LOG_TAG);
|
||||
this.deletedPasswordsHelper = new QueryHelper(context, BrowserContractHelpers.DELETED_PASSWORDS_CONTENT_URI, LOG_TAG);
|
||||
this.passwordsProvider = context.getContentResolver().acquireContentProviderClient(BrowserContract.PASSWORDS_AUTHORITY_URI);
|
||||
dumpDbs();
|
||||
}
|
||||
|
||||
private static final String[] GUID_COLS = new String[] { Passwords.GUID };
|
||||
@ -709,29 +708,4 @@ public class PasswordsRepositorySession extends
|
||||
cv.put(BrowserContract.Passwords.TIMES_USED, rec.timesUsed);
|
||||
return cv;
|
||||
}
|
||||
|
||||
private void dumpDbs() {
|
||||
Cursor cursor = null;
|
||||
try {
|
||||
// Dump passwords.
|
||||
Logger.debug(LOG_TAG, "passwordsProvider: ");
|
||||
cursor = passwordsHelper.safeQuery(passwordsProvider, ".dumpDBs", getAllColumns(), dateModifiedWhere(0), null, null);
|
||||
RepoUtils.dumpCursor(cursor);
|
||||
cursor.close();
|
||||
|
||||
// Dump deleted passwords.
|
||||
Logger.debug(LOG_TAG, "deletedPasswordsProvider: ");
|
||||
cursor = deletedPasswordsHelper.safeQuery(passwordsProvider, ".dumpDBs", getAllDeletedColumns(), dateModifiedWhereDeleted(0), null, null);
|
||||
RepoUtils.dumpCursor(cursor);
|
||||
|
||||
} catch (NullCursorException e) {
|
||||
Logger.debug(LOG_TAG, "NullCursor in dumping DBs.");
|
||||
} catch (RemoteException e) {
|
||||
Logger.debug(LOG_TAG, "RemoteException in dumping DBs.");
|
||||
} finally {
|
||||
if (cursor != null) {
|
||||
cursor.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user