Skip to content

Commit

Permalink
Bug 1284674 - Remove NUWA r=cyu
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: GyMRNzOBKw6
  • Loading branch information
Alexandre Lissy committed Aug 2, 2016
1 parent 89be627 commit c607dc9
Show file tree
Hide file tree
Showing 86 changed files with 23 additions and 5,902 deletions.
300 changes: 0 additions & 300 deletions b2g/app/B2GLoader.cpp

This file was deleted.

4 changes: 0 additions & 4 deletions b2g/app/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ if CONFIG['GAIADIR']:
GeckoProgram(CONFIG['MOZ_APP_NAME'] + "-bin")
else:
GeckoProgram(CONFIG['MOZ_APP_NAME'])
if CONFIG['MOZ_B2G_LOADER']:
SOURCES += [
'B2GLoader.cpp',
]

SOURCES += [
'nsBrowserApp.cpp',
Expand Down
21 changes: 1 addition & 20 deletions b2g/app/nsBrowserApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,22 +163,9 @@ static int do_main(int argc, char* argv[])
return XRE_main(argc, argv, &sAppData, 0);
}

#ifdef MOZ_B2G_LOADER
/*
* The main() in B2GLoader.cpp is the new main function instead of the
* main() here if it is enabled. So, rename it to b2g_man().
*/
#define main b2g_main
#define _CONST const
#else
#define _CONST
#endif

int main(int argc, _CONST char* argv[])
int main(int argc, char* argv[])
{
#ifndef MOZ_B2G_LOADER
char exePath[MAXPATHLEN];
#endif

#ifdef MOZ_WIDGET_GONK
// This creates a ThreadPool for binder ipc. A ThreadPool is necessary to
Expand All @@ -189,7 +176,6 @@ int main(int argc, _CONST char* argv[])
#endif

nsresult rv;
#ifndef MOZ_B2G_LOADER
rv = mozilla::BinaryPath::Get(argv[0], exePath);
if (NS_FAILED(rv)) {
Output("Couldn't calculate the application directory.\n");
Expand All @@ -201,7 +187,6 @@ int main(int argc, _CONST char* argv[])
return 255;

strcpy(++lastSlash, XPCOM_DLL);
#endif // MOZ_B2G_LOADER

#if defined(XP_UNIX)
// If the b2g app is launched from adb shell, then the shell will wind
Expand All @@ -216,9 +201,6 @@ int main(int argc, _CONST char* argv[])
DllBlocklist_Initialize();
#endif

// B2G loader has already initialized Gecko so we can't initialize
// it again here.
#ifndef MOZ_B2G_LOADER
// We do this because of data in bug 771745
XPCOMGlueEnablePreload();

Expand All @@ -229,7 +211,6 @@ int main(int argc, _CONST char* argv[])
}
// Reset exePath so that it is the directory name and not the xpcom dll name
*lastSlash = 0;
#endif // MOZ_B2G_LOADER

rv = XPCOMGlueLoadXULFunctions(kXULFuncs);
if (NS_FAILED(rv)) {
Expand Down
2 changes: 0 additions & 2 deletions b2g/confvars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ MOZ_TOOLKIT_SEARCH=
MOZ_B2G=1

if test "$OS_TARGET" = "Android"; then
MOZ_NUWA_PROCESS=1
MOZ_B2G_LOADER=1
MOZ_ENABLE_WARNINGS_AS_ERRORS=1
fi

Expand Down
2 changes: 0 additions & 2 deletions b2g/graphene/confvars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ MOZ_PLACES=
MOZ_B2G=1

if test "$OS_TARGET" = "Android"; then
MOZ_NUWA_PROCESS=1
MOZ_B2G_LOADER=1
MOZ_ENABLE_WARNINGS_AS_ERRORS=1
fi

Expand Down
Loading

0 comments on commit c607dc9

Please sign in to comment.