Disable app shim signature check

App shims aren't starting on 73.0.3677.0.

TBR=sdy

Bug: 624228
Change-Id: Ied8fdac4986b61db99333527b118f319d808d5c7
Reviewed-on: https://chromium-review.googlesource.com/c/1424159
Commit-Queue: ccameron <ccameron@chromium.org>
Reviewed-by: ccameron <ccameron@chromium.org>
Cr-Commit-Position: refs/heads/master@{#624478}
diff --git a/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc b/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc
index 0bef1c7..3f6b27a 100644
--- a/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc
+++ b/chrome/browser/apps/app_shim/extension_app_shim_handler_mac.cc
@@ -114,6 +114,14 @@
 // - False otherwise (e.g. the shim doesn't satisfy the browser's designated
 //   requirement, or the browser is an official Chrome build but unsigned).
 bool IsAcceptablyCodeSigned(pid_t pid) {
+  // Only require signatures for official Chrome builds.
+#if !defined(OFFICIAL_BUILD) || !defined(GOOGLE_CHROME_BUILD)
+  return true;
+#endif
+  // TODO(https://crbug.com/624228): Re-enable signature checking when shims
+  // can start.
+  return true;
+
   base::ScopedCFTypeRef<SecCodeRef> own_code;
   base::ScopedCFTypeRef<SecRequirementRef> own_designated_requirement;
 
@@ -128,13 +136,7 @@
       SecCodeCopyDesignatedRequirement(
           own_code, kSecCSDefaultFlags,
           own_designated_requirement.InitializeInto()) != errSecSuccess) {
-#if defined(OFFICIAL_BUILD) && defined(GOOGLE_CHROME_BUILD)
-    // This is an official Chrome build, which should always be signed. Fail.
     return false;
-#else
-    // This is some other kind of unsigned build (like a local one). Pass.
-    return true;
-#endif
   }
 
   base::ScopedCFTypeRef<SecCodeRef> guest_code;
@@ -639,6 +641,7 @@
   // If the connecting shim process doesn't have an acceptable code signature,
   // reject the connection and recreate the shim.
   if (!IsAcceptablyCodeSigned(bootstrap->GetAppShimPid())) {
+    LOG(WARNING) << "Attaching app shim process is not signed, regenerating.";
     if (bootstrap->GetLaunchType() == APP_SHIM_LAUNCH_NORMAL) {
       constexpr bool recreate_shims = true;
       delegate_->LaunchShim(profile, extension, recreate_shims,