Bug 1523969 part 25 - Move method definition inline comments to new line in 'uriloader/'. r=bzbarsky
authorRyan Hunt <rhunt@eqrion.net>
Mon, 25 Feb 2019 16:13:32 -0600
changeset 519788 a909cb872007c22cea076783ddf93cb25a332d1c
parent 519787 9d07b7406ad2f3d1a4ca62321efc56825b04bd93
child 519789 0707c5d273227aed4fb04a8f6360875165f83ddd
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1523969
milestone67.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 1523969 part 25 - Move method definition inline comments to new line in 'uriloader/'. r=bzbarsky Differential Revision: https://phabricator.services.mozilla.com/D21128
uriloader/exthandler/unix/nsGNOMERegistry.cpp
uriloader/exthandler/win/nsOSHelperAppService.cpp
uriloader/prefetch/nsOfflineCacheUpdate.cpp
--- a/uriloader/exthandler/unix/nsGNOMERegistry.cpp
+++ b/uriloader/exthandler/unix/nsGNOMERegistry.cpp
@@ -5,51 +5,55 @@
 
 #include "nsGNOMERegistry.h"
 #include "nsString.h"
 #include "nsIComponentManager.h"
 #include "nsMIMEInfoUnix.h"
 #include "nsAutoPtr.h"
 #include "nsIGIOService.h"
 
-/* static */ bool nsGNOMERegistry::HandlerExists(const char* aProtocolScheme) {
+/* static */
+bool nsGNOMERegistry::HandlerExists(const char* aProtocolScheme) {
   nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
   if (!giovfs) {
     return false;
   }
 
   nsCOMPtr<nsIHandlerApp> app;
   return NS_SUCCEEDED(giovfs->GetAppForURIScheme(
       nsDependentCString(aProtocolScheme), getter_AddRefs(app)));
 }
 
 // XXX Check HandlerExists() before calling LoadURL.
 
-/* static */ nsresult nsGNOMERegistry::LoadURL(nsIURI* aURL) {
+/* static */
+nsresult nsGNOMERegistry::LoadURL(nsIURI* aURL) {
   nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
   if (!giovfs) {
     return NS_ERROR_FAILURE;
   }
 
   return giovfs->ShowURI(aURL);
 }
 
-/* static */ void nsGNOMERegistry::GetAppDescForScheme(
-    const nsACString& aScheme, nsAString& aDesc) {
+/* static */
+void nsGNOMERegistry::GetAppDescForScheme(const nsACString& aScheme,
+                                          nsAString& aDesc) {
   nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
   if (!giovfs) return;
 
   nsCOMPtr<nsIHandlerApp> app;
   if (NS_FAILED(giovfs->GetAppForURIScheme(aScheme, getter_AddRefs(app))))
     return;
 
   app->GetName(aDesc);
 }
 
-/* static */ already_AddRefed<nsMIMEInfoBase> nsGNOMERegistry::GetFromExtension(
+/* static */
+already_AddRefed<nsMIMEInfoBase> nsGNOMERegistry::GetFromExtension(
     const nsACString& aFileExt) {
   nsAutoCString mimeType;
   nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
   if (!giovfs) {
     return nullptr;
   }
 
   // Get the MIME type from the extension, then call GetFromType to
@@ -62,17 +66,18 @@
   RefPtr<nsMIMEInfoBase> mi = GetFromType(mimeType);
   if (mi) {
     mi->AppendExtension(aFileExt);
   }
 
   return mi.forget();
 }
 
-/* static */ already_AddRefed<nsMIMEInfoBase> nsGNOMERegistry::GetFromType(
+/* static */
+already_AddRefed<nsMIMEInfoBase> nsGNOMERegistry::GetFromType(
     const nsACString& aMIMEType) {
   RefPtr<nsMIMEInfoUnix> mimeInfo = new nsMIMEInfoUnix(aMIMEType);
   NS_ENSURE_TRUE(mimeInfo, nullptr);
 
   nsAutoString name;
   nsAutoCString description;
 
   nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
--- a/uriloader/exthandler/win/nsOSHelperAppService.cpp
+++ b/uriloader/exthandler/win/nsOSHelperAppService.cpp
@@ -180,18 +180,19 @@ nsresult nsOSHelperAppService::GetMIMEIn
 }
 
 /////////////////////////////////////////////////////////////////////////////////////////////////
 // method overrides used to gather information from the windows registry for
 // various mime types.
 ////////////////////////////////////////////////////////////////////////////////////////////////
 
 /// Looks up the type for the extension aExt and compares it to aType
-/* static */ bool nsOSHelperAppService::typeFromExtEquals(const char16_t* aExt,
-                                                          const char* aType) {
+/* static */
+bool nsOSHelperAppService::typeFromExtEquals(const char16_t* aExt,
+                                             const char* aType) {
   if (!aType) return false;
   nsAutoString fileExtToUse;
   if (aExt[0] != char16_t('.')) fileExtToUse = char16_t('.');
 
   fileExtToUse.Append(aExt);
 
   bool eq = false;
   nsCOMPtr<nsIWindowsRegKey> regKey =
--- a/uriloader/prefetch/nsOfflineCacheUpdate.cpp
+++ b/uriloader/prefetch/nsOfflineCacheUpdate.cpp
@@ -186,19 +186,21 @@ nsresult nsManifestCheck::Begin() {
 
   return mChannel->AsyncOpen(this);
 }
 
 //-----------------------------------------------------------------------------
 // nsManifestCheck <public>
 //-----------------------------------------------------------------------------
 
-/* static */ nsresult nsManifestCheck::ReadManifest(
-    nsIInputStream *aInputStream, void *aClosure, const char *aFromSegment,
-    uint32_t aOffset, uint32_t aCount, uint32_t *aBytesConsumed) {
+/* static */
+nsresult nsManifestCheck::ReadManifest(nsIInputStream *aInputStream,
+                                       void *aClosure, const char *aFromSegment,
+                                       uint32_t aOffset, uint32_t aCount,
+                                       uint32_t *aBytesConsumed) {
   nsManifestCheck *manifestCheck = static_cast<nsManifestCheck *>(aClosure);
 
   nsresult rv;
   *aBytesConsumed = aCount;
 
   rv = manifestCheck->mManifestHash->Update(
       reinterpret_cast<const uint8_t *>(aFromSegment), aCount);
   NS_ENSURE_SUCCESS(rv, rv);