@@ -68,7 +68,7 @@ using namespace std;
68
68
# define MAX_PATH PATH_MAX
69
69
#endif
70
70
71
- XRE_InitEmbeddingType XRE_InitEmbedding = 0 ;
71
+ XRE_InitEmbedding2Type XRE_InitEmbedding2 = 0 ;
72
72
XRE_TermEmbeddingType XRE_TermEmbedding = 0 ;
73
73
XRE_NotifyProfileType XRE_NotifyProfile = 0 ;
74
74
XRE_LockProfileDirectoryType XRE_LockProfileDirectory = 0 ;
@@ -148,9 +148,7 @@ MozEmbedDirectoryProvider::GetFiles(const char *aKey,
148
148
return dp2->GetFiles (aKey, aResult);
149
149
}
150
150
151
- nsresult InitEmbedding (const char * aProfilePath,
152
- const nsStaticModuleInfo* aComps,
153
- int aNumComps)
151
+ nsresult InitEmbedding (const char * aProfilePath)
154
152
{
155
153
nsresult rv;
156
154
@@ -189,7 +187,7 @@ nsresult InitEmbedding(const char* aProfilePath,
189
187
190
188
// load XUL functions
191
189
nsDynamicFunctionLoad nsFuncs[] = {
192
- {" XRE_InitEmbedding " , (NSFuncPtr*)&XRE_InitEmbedding },
190
+ {" XRE_InitEmbedding2 " , (NSFuncPtr*)&XRE_InitEmbedding2 },
193
191
{" XRE_TermEmbedding" , (NSFuncPtr*)&XRE_TermEmbedding},
194
192
{" XRE_NotifyProfile" , (NSFuncPtr*)&XRE_NotifyProfile},
195
193
{" XRE_LockProfileDirectory" , (NSFuncPtr*)&XRE_LockProfileDirectory},
@@ -276,9 +274,8 @@ nsresult InitEmbedding(const char* aProfilePath,
276
274
}
277
275
278
276
// init embedding
279
- rv = XRE_InitEmbedding (xuldir, appdir,
280
- const_cast <MozEmbedDirectoryProvider*>(&kDirectoryProvider ),
281
- aComps, aNumComps);
277
+ rv = XRE_InitEmbedding2 (xuldir, appdir,
278
+ const_cast <MozEmbedDirectoryProvider*>(&kDirectoryProvider ));
282
279
if (NS_FAILED(rv)) {
283
280
cerr << " XRE_InitEmbedding failed." << endl;
284
281
return 9 ;
0 commit comments