Bug 744794 - Remove password debugging code. r=trivial

This commit is contained in:
Richard Newman 2012-04-12 09:10:56 -07:00
parent 20840b65ba
commit 1cd028f9ae

View File

@ -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();
}
}
}
}