mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1135088 - Follow-up: restore removed import. a=bustage on a CLOSED TREE
Don't rebase before landing, kids. --HG-- extra : amend_source : fd304441053f36ddfeb017feffc978e4922b9003
This commit is contained in:
parent
ac47a44320
commit
774c1276a3
@ -6,6 +6,7 @@ package org.mozilla.gecko.db;
|
|||||||
|
|
||||||
import org.mozilla.gecko.AppConstants.Versions;
|
import org.mozilla.gecko.AppConstants.Versions;
|
||||||
import org.mozilla.gecko.db.BrowserContract.CommonColumns;
|
import org.mozilla.gecko.db.BrowserContract.CommonColumns;
|
||||||
|
import org.mozilla.gecko.db.BrowserContract.SyncColumns;
|
||||||
import org.mozilla.gecko.db.PerProfileDatabases.DatabaseHelperFactory;
|
import org.mozilla.gecko.db.PerProfileDatabases.DatabaseHelperFactory;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
@ -102,8 +103,8 @@ public abstract class SharedBrowserDatabaseProvider extends AbstractPerProfileDa
|
|||||||
// IDs of matching rows, then delete them in one go.
|
// IDs of matching rows, then delete them in one go.
|
||||||
final long now = System.currentTimeMillis();
|
final long now = System.currentTimeMillis();
|
||||||
final String selection = SyncColumns.IS_DELETED + " = 1 AND " +
|
final String selection = SyncColumns.IS_DELETED + " = 1 AND " +
|
||||||
SyncColumns.DATE_MODIFIED + " <= " +
|
SyncColumns.DATE_MODIFIED + " <= " +
|
||||||
(now - MAX_AGE_OF_DELETED_RECORDS);
|
(now - MAX_AGE_OF_DELETED_RECORDS);
|
||||||
|
|
||||||
final String profile = fromUri.getQueryParameter(BrowserContract.PARAM_PROFILE);
|
final String profile = fromUri.getQueryParameter(BrowserContract.PARAM_PROFILE);
|
||||||
final SQLiteDatabase db = getWritableDatabaseForProfile(profile, isTest(fromUri));
|
final SQLiteDatabase db = getWritableDatabaseForProfile(profile, isTest(fromUri));
|
||||||
|
Loading…
Reference in New Issue
Block a user