Bug 1472676: Add curly brackets. draft
authorRobert Bartlensky <rbartlensky@mozilla.com>
Wed, 04 Jul 2018 16:37:02 +0100
changeset 814128 dc50f0665660956785851df6ed998f6ca209a262
parent 814117 c8e1824b0e2e3db71581d214404ec7c159fb3e89
child 819781 310badc07f7039410a0ee355c2cd1f908b523a2a
push id115115
push userbmo:rbartlensky@mozilla.com
push dateWed, 04 Jul 2018 15:39:17 +0000
bugs1472676
milestone63.0a1
Bug 1472676: Add curly brackets. MozReview-Commit-ID: 7sgBIGX4RFj
dom/ipc/ContentChild.cpp
--- a/dom/ipc/ContentChild.cpp
+++ b/dom/ipc/ContentChild.cpp
@@ -2261,31 +2261,33 @@ ContentChild::RecvRegisterChrome(Infalli
                                  InfallibleTArray<SubstitutionMapping>&& resources,
                                  InfallibleTArray<OverrideMapping>&& overrides,
                                  const nsCString& locale,
                                  const bool& reset)
 {
   nsCOMPtr<nsIChromeRegistry> registrySvc = nsChromeRegistry::GetService();
   nsChromeRegistryContent* chromeRegistry =
     static_cast<nsChromeRegistryContent*>(registrySvc.get());
-  if (!chromeRegistry)
+  if (!chromeRegistry) {
     return IPC_FAIL(this, "ChromeRegistryContent is null!");
+  }
   chromeRegistry->RegisterRemoteChrome(packages, resources, overrides,
                                        locale, reset);
   return IPC_OK();
 }
 
 mozilla::ipc::IPCResult
 ContentChild::RecvRegisterChromeItem(const ChromeRegistryItem& item)
 {
   nsCOMPtr<nsIChromeRegistry> registrySvc = nsChromeRegistry::GetService();
   nsChromeRegistryContent* chromeRegistry =
     static_cast<nsChromeRegistryContent*>(registrySvc.get());
-  if (!chromeRegistry)
+  if (!chromeRegistry) {
     return IPC_FAIL(this, "ChromeRegistryContent is null!");
+  }
   switch (item.type()) {
     case ChromeRegistryItem::TChromePackage:
       chromeRegistry->RegisterPackage(item.get_ChromePackage());
       break;
 
     case ChromeRegistryItem::TOverrideMapping:
       chromeRegistry->RegisterOverride(item.get_OverrideMapping());
       break;