Merge change 20267 into donut

* changes:
  Do not merge
This commit is contained in:
Android (Google) Code Review
2009-08-06 10:17:15 -07:00
2 changed files with 8 additions and 1 deletions

View File

@@ -139,7 +139,13 @@ class GearsPermissionsManager {
file = new File(file.getAbsolutePath() + File.separator
+ GEARS_DATABASE_DIR + File.separator + GEARS_DATABASE_FILE);
// Remember whether or not we need to create the LocationAccess table.
boolean needToCreateTables = !file.exists();
boolean needToCreateTables = false;
if (!file.exists()) {
needToCreateTables = true;
// Create the path or else SQLiteDatabase.openOrCreateDatabase()
// may throw on the device.
file.getParentFile().mkdirs();
}
// If the database file does not yet exist and the system location
// setting says that the Gears origins need to be removed from the
// location permission table, it means that we don't actually need

View File

@@ -199,6 +199,7 @@ public class WebSettings {
switch (msg.what) {
case SYNC:
synchronized (WebSettings.this) {
checkGearsPermissions();
if (mBrowserFrame.mNativeFrame != 0) {
nativeSync(mBrowserFrame.mNativeFrame);
}