Bug 880599 - Remove GeckoProfile.get() from provider creation. r=gbrown
authorBrian Nicholson <bnicholson@mozilla.com>
Mon, 10 Jun 2013 15:37:39 -0700
changeset 134573 1a7469edb07eea09276bf46a3cf3eb1339cde299
parent 134572 c0218a6cb1ed384010e6e6cb731186216723c4ae
child 134574 4b69dc0eb786deabc4dbe290e9e622bc108ee1e5
push id24805
push useremorley@mozilla.com
push dateTue, 11 Jun 2013 08:32:39 +0000
treeherdermozilla-central@81b227f1a522 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgbrown
bugs880599
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 880599 - Remove GeckoProfile.get() from provider creation. r=gbrown
mobile/android/base/db/BrowserProvider.java
mobile/android/base/db/TabsProvider.java
--- a/mobile/android/base/db/BrowserProvider.java
+++ b/mobile/android/base/db/BrowserProvider.java
@@ -2143,27 +2143,16 @@ public class BrowserProvider extends Con
         String incrementVisits = uri.getQueryParameter(BrowserContract.PARAM_INCREMENT_VISITS);
         return Boolean.parseBoolean(incrementVisits);
     }
 
     @Override
     public boolean onCreate() {
         debug("Creating BrowserProvider");
 
-        ThreadUtils.postToBackgroundThread(new Runnable() {
-            @Override
-            public void run() {
-                // Kick this off early. It is synchronized so that other callers will wait
-                try {
-                    GeckoProfile.get(getContext()).getDir();
-                } catch (Exception ex) {
-                    Log.e(LOGTAG, "Error getting profile dir", ex);
-                }
-            }
-        });
         synchronized (this) {
             mContext = getContext();
             mDatabasePerProfile = new HashMap<String, DatabaseHelper>();
         }
 
         return true;
     }
 
--- a/mobile/android/base/db/TabsProvider.java
+++ b/mobile/android/base/db/TabsProvider.java
@@ -284,27 +284,16 @@ public class TabsProvider extends Conten
 
         return getDatabaseHelperForProfile(profile).getWritableDatabase();
     }
 
     @Override
     public boolean onCreate() {
         debug("Creating TabsProvider");
 
-        ThreadUtils.postToBackgroundThread(new Runnable() {
-            @Override
-            public void run() {
-                // Kick this off early. It is synchronized so that other callers will wait
-                try {
-                    GeckoProfile.get(getContext()).getDir();
-                } catch (Exception ex) {
-                    Log.e(LOGTAG, "Error getting profile dir", ex);
-                }
-            }
-        });
         synchronized (this) {
             mContext = getContext();
             mDatabasePerProfile = new HashMap<String, DatabaseHelper>();
         }
 
         return true;
     }