зеркало из https://github.com/mozilla/gecko-dev.git
(215094) Move migration-started observer notification to the correct place to fix automigration
This commit is contained in:
Родитель
7bf11d6698
Коммит
bd67aaaf11
|
@ -110,13 +110,13 @@ nsDogbertProfileMigrator::Migrate(PRUint32 aItems, PRBool aReplace, const PRUnic
|
||||||
{
|
{
|
||||||
nsresult rv = NS_OK;
|
nsresult rv = NS_OK;
|
||||||
|
|
||||||
NOTIFY_OBSERVERS(MIGRATION_STARTED, nsnull);
|
|
||||||
|
|
||||||
if (!mTargetProfile)
|
if (!mTargetProfile)
|
||||||
GetTargetProfile(aProfile, aReplace);
|
GetTargetProfile(aProfile, aReplace);
|
||||||
if (!mSourceProfile)
|
if (!mSourceProfile)
|
||||||
GetSourceProfile(aProfile);
|
GetSourceProfile(aProfile);
|
||||||
|
|
||||||
|
NOTIFY_OBSERVERS(MIGRATION_STARTED, nsnull);
|
||||||
|
|
||||||
COPY_DATA(CopyPreferences, aReplace, nsIBrowserProfileMigrator::SETTINGS);
|
COPY_DATA(CopyPreferences, aReplace, nsIBrowserProfileMigrator::SETTINGS);
|
||||||
COPY_DATA(CopyCookies, aReplace, nsIBrowserProfileMigrator::COOKIES);
|
COPY_DATA(CopyCookies, aReplace, nsIBrowserProfileMigrator::COOKIES);
|
||||||
COPY_DATA(CopyBookmarks, aReplace, nsIBrowserProfileMigrator::BOOKMARKS);
|
COPY_DATA(CopyBookmarks, aReplace, nsIBrowserProfileMigrator::BOOKMARKS);
|
||||||
|
|
|
@ -88,13 +88,13 @@ nsSeamonkeyProfileMigrator::Migrate(PRUint32 aItems, PRBool aReplace, const PRUn
|
||||||
{
|
{
|
||||||
nsresult rv = NS_OK;
|
nsresult rv = NS_OK;
|
||||||
|
|
||||||
NOTIFY_OBSERVERS(MIGRATION_STARTED, nsnull);
|
|
||||||
|
|
||||||
if (!mTargetProfile)
|
if (!mTargetProfile)
|
||||||
GetTargetProfile(aProfile, aReplace);
|
GetTargetProfile(aProfile, aReplace);
|
||||||
if (!mSourceProfile)
|
if (!mSourceProfile)
|
||||||
GetSourceProfile(aProfile);
|
GetSourceProfile(aProfile);
|
||||||
|
|
||||||
|
NOTIFY_OBSERVERS(MIGRATION_STARTED, nsnull);
|
||||||
|
|
||||||
COPY_DATA(CopyPreferences, aReplace, nsIBrowserProfileMigrator::SETTINGS);
|
COPY_DATA(CopyPreferences, aReplace, nsIBrowserProfileMigrator::SETTINGS);
|
||||||
COPY_DATA(CopyCookies, aReplace, nsIBrowserProfileMigrator::COOKIES);
|
COPY_DATA(CopyCookies, aReplace, nsIBrowserProfileMigrator::COOKIES);
|
||||||
COPY_DATA(CopyHistory, aReplace, nsIBrowserProfileMigrator::HISTORY);
|
COPY_DATA(CopyHistory, aReplace, nsIBrowserProfileMigrator::HISTORY);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче