Update profile enforcement checks to require a DB.

In most cases, mDb would be set by the time a profile check was first
made, but if the first check is a query, it won't be set.  So pass in
the database for initialization on all enforcement calls.

Bug 5032229

Change-Id: I5bde0d9ac54522483a09fb174f22b06a4582b3a5
1 file changed