Bug 562706 - Start using PlacesUtils.jsm instead of utils.js [r=mfinkle]
authorMatt Brubeck <mbrubeck@mozilla.com>
Thu, 03 Jun 2010 15:50:43 -0400
changeset 66252 7d67f3e2b6d866c133697999c97f6e577abd6626
parent 66251 a422ff231c9dfea5cca46e338c3866bbf5ab405b
child 66253 43dde3302607fd6c796f39b72b5dff00dc9c6a22
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs562706
Bug 562706 - Start using PlacesUtils.jsm instead of utils.js [r=mfinkle]
mobile/chrome/content/browser-ui.js
mobile/components/BrowserStartup.js
--- a/mobile/chrome/content/browser-ui.js
+++ b/mobile/chrome/content/browser-ui.js
@@ -39,17 +39,17 @@
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 XPCOMUtils.defineLazyGetter(this, "PluralForm", function() {
   Cu.import("resource://gre/modules/PluralForm.jsm");
   return PluralForm;
 });
 
 XPCOMUtils.defineLazyGetter(this, "PlacesUtils", function() {
-  Cu.import("resource://gre/modules/utils.js");
+  Cu.import("resource://gre/modules/PlacesUtils.js");
   return PlacesUtils;
 });
 
 const TOOLBARSTATE_LOADING  = 1;
 const TOOLBARSTATE_LOADED   = 2;
 
 [
   [
--- a/mobile/components/BrowserStartup.js
+++ b/mobile/components/BrowserStartup.js
@@ -95,17 +95,17 @@ BrowserStartup.prototype = {
       // caring about users migrating to current builds with pre-1.0 profiles.
       let annos = Cc["@mozilla.org/browser/annotation-service;1"].
                   getService(Ci.nsIAnnotationService);
       let mobileRootItems = annos.getItemsWithAnnotation("mobile/bookmarksRoot", {});
       if (mobileRootItems.length > 0)
         return; // no need to do initial import
     }
 
-    Cu.import("resource://gre/modules/utils.js");
+    Cu.import("resource://gre/modules/PlacesUtils.js");
 
     try {
       let observer = {
         onStreamComplete : function(aLoader, aContext, aStatus, aLength, aResult) {
           let converter = Cc["@mozilla.org/intl/scriptableunicodeconverter"].
                           createInstance(Ci.nsIScriptableUnicodeConverter);
           let jsonStr = "";
           try {