237172 - remove an unnecessary addition of a global observer in the migration code. this is only built in firefox. r=bsmedberg

This commit is contained in:
ben%bengoodger.com 2004-03-16 04:00:54 +00:00
parent 00e04de13a
commit 79be05b1ae

View File

@ -292,13 +292,8 @@ nsAppShellService::DoProfileStartup(nsICmdLineService *aCmdLineService, PRBool c
if (numProfiles == 0) {
nsCOMPtr<nsIProfileMigrator> pm(do_CreateInstance("@mozilla.org/profile/migrator;1", &rv));
if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsIObserver> obs(do_QueryInterface(pm));
nsCOMPtr<nsIObserverService> os(do_GetService("@mozilla.org/observer-service;1"));
os->AddObserver(obs, "profile-initial-state", PR_FALSE);
if (NS_SUCCEEDED(rv))
rv = pm->Migrate();
}
if (NS_FAILED(rv)) {
// Migration failed for some reason, or there was no profile migrator.
// Create a generic default profile.