Bug 621366 - Content process nsDOMStorageManager observes notifications needlessly; r=honzab a=jst

--HG--
extra : rebase_source : 1e5a0785225b16402a0e864357605b3ae52382c4
This commit is contained in:
Josh Matthews 2010-12-25 02:31:01 -05:00
Родитель 58788ce22a
Коммит f6080520da
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -271,6 +271,12 @@ nsDOMStorageManager::Initialize()
NS_ADDREF(gStorageManager);
#ifdef MOZ_IPC
// No observers needed in non-chrome
if (XRE_GetProcessType() != GeckoProcessType_Default)
return NS_OK;
#endif
nsCOMPtr<nsIObserverService> os = mozilla::services::GetObserverService();
if (!os)
return NS_OK;