Bug 1045289 - Rename nsXPComInit.cpp to XPCOMInit.cpp. r=froydnj
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Fri, 26 Sep 2014 07:20:23 +0300
changeset 207363 434f9192f7d2431fb33361fea89591aebeea9a8f
parent 207362 99b8aa0721f439235945b743a437f1ae2614f98e
child 207364 d89e102c739e85da5144a2a9daecd6adf10c654b
push id49661
push userbirunthan@mohanathas.com
push dateFri, 26 Sep 2014 04:21:10 +0000
treeherdermozilla-inbound@d89e102c739e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1045289
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1045289 - Rename nsXPComInit.cpp to XPCOMInit.cpp. r=froydnj
startupcache/StartupCache.h
xpcom/build/XPCOMInit.cpp
xpcom/build/moz.build
xpcom/build/nsXPComInit.cpp
xpcom/io/nsLocalFile.h
--- a/startupcache/StartupCache.h
+++ b/startupcache/StartupCache.h
@@ -21,17 +21,17 @@
 #include "mozilla/StaticPtr.h"
 
 /**
  * The StartupCache is a persistent cache of simple key-value pairs,
  * where the keys are null-terminated c-strings and the values are 
  * arbitrary data, passed as a (char*, size) tuple. 
  *
  * Clients should use the GetSingleton() static method to access the cache. It 
- * will be available from the end of XPCOM init (NS_InitXPCOM3 in nsXPComInit.cpp), 
+ * will be available from the end of XPCOM init (NS_InitXPCOM3 in XPCOMInit.cpp), 
  * until XPCOM shutdown begins. The GetSingleton() method will return null if the cache
  * is unavailable. The cache is only provided for libxul builds --
  * it will fail to link in non-libxul builds. The XPCOM interface is provided
  * only to allow compiled-code tests; clients should avoid using it.
  *
  * The API provided is very simple: GetBuffer() returns a buffer that was previously
  * stored in the cache (if any), and PutBuffer() inserts a buffer into the cache.
  * GetBuffer returns a new buffer, and the caller must take ownership of it.
rename from xpcom/build/nsXPComInit.cpp
rename to xpcom/build/XPCOMInit.cpp
--- a/xpcom/build/moz.build
+++ b/xpcom/build/moz.build
@@ -46,19 +46,19 @@ include('../glue/objs.mozbuild')
 UNIFIED_SOURCES += xpcom_gluens_src_cppsrcs
 UNIFIED_SOURCES += xpcom_glue_src_cppsrcs
 
 UNIFIED_SOURCES += [
     'FrozenFunctions.cpp',
     'IOInterposer.cpp',
     'LateWriteChecks.cpp',
     'MainThreadIOLogger.cpp',
-    'nsXPComInit.cpp',
     'nsXPCOMStrings.cpp',
     'Services.cpp',
+    'XPCOMInit.cpp',
 ]
 
 if CONFIG['OS_ARCH'] != 'WINNT':
     SOURCES += [
         'NSPRInterposer.cpp',
     ]
 
 # FileLocation.cpp and Omnijar.cpp cannot be built in unified mode because they
--- a/xpcom/io/nsLocalFile.h
+++ b/xpcom/io/nsLocalFile.h
@@ -26,17 +26,17 @@
   nsresult CopyToUnicode(nsIFile *aNewParentDir, const char16_t *aNewLeafName);               \
   nsresult CopyToFollowingLinksUnicode(nsIFile *aNewParentDir, const char16_t *aNewLeafName); \
   nsresult MoveToUnicode(nsIFile *aNewParentDir, const char16_t *aNewLeafName);               \
   nsresult GetUnicodeTarget(char16_t **aTarget);                                              \
   nsresult GetUnicodePath(char16_t **aPath);                                                  \
   nsresult InitWithUnicodePath(const char16_t *aPath);                                        \
   nsresult AppendRelativeUnicodePath(const char16_t *aRelativePath);
 
-// nsXPComInit needs to know about how we are implemented,
+// XPCOMInit needs to know about how we are implemented,
 // so here we will export it.  Other users should not depend
 // on this.
 
 #include <errno.h>
 #include "nsILocalFile.h"
 
 #ifdef XP_WIN
 #include "nsLocalFileWin.h"