Bug 706339 - Chrome migrator always offers migration even if Chrome is not present. r=gavin
authorFelipe Gomes <felipc@gmail.com>
Tue, 29 Nov 2011 18:48:11 -0800
changeset 82623 1dd3de87d353d82857f7db4de05dcdb5bf4079cc
parent 82622 4d2b7e489b20891e0dbe3c44f2f0e2d0931378a2
child 82624 f739602236da7f0476bdcdeb7a96a7024465d5a5
push id519
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 00:38:35 +0000
treeherdermozilla-beta@788ea1ef610b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs706339
milestone11.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 706339 - Chrome migrator always offers migration even if Chrome is not present. r=gavin
browser/components/migration/src/ChromeProfileMigrator.js
--- a/browser/components/migration/src/ChromeProfileMigrator.js
+++ b/browser/components/migration/src/ChromeProfileMigrator.js
@@ -474,33 +474,33 @@ ChromeProfileMigrator.prototype = {
     return result;
   },
 
   /*
    * Whether we support migration of Chrome
    *
    * @return true if supported
    */
-  sourceExists: function Chrome_sourceExists()
+  get sourceExists()
   {
     let result = this.getMigrateData(null, false);
     return result != 0;
   },
 
   // Although Chrome supports multi-profiles, there is no way
   // to get profile lists.
   sourceHasMultipleProfiles: false,
   sourceProfiles: null,
 
   /*
    * Return home page URL
    *
    * @return  home page URL
    */
-  sourceHomePageURL: function Chrome_sourceHomePageURL()
+  get sourceHomePageURL()
   {
     try  {
       if (this._homepageURL)
         return this._homepageURL;
 
       if (!this._paths.prefs)
         this.getMigrateData(null, false);