Add delay to allow Chrome to load above splash in verified mode

Also, add a delay in the non devmode case to help make the
transition smooth when in verified mode as well.  This
change also increases the delay to 8 seconds to allow chrome
enough time to draw itself above the splash.

BUG=chromium:455605
TEST=verified on link

Change-Id: Ib0086e4c36df7b2d5c8fd78c027bfa4b71cca773
Previous-Reviewed-on: https://chromium-review.googlesource.com/251056
Trybot-Ready: David Sodman <dsodman@chromium.org>
(cherry picked from commit dd5b23eb9a0c8862fcde70652c9bae4acc483865)
Reviewed-on: https://chromium-review.googlesource.com/252921
Reviewed-by: David Sodman <dsodman@chromium.org>
Tested-by: David Sodman <dsodman@chromium.org>
diff --git a/splash.c b/splash.c
index 2825cf1..28debf4 100644
--- a/splash.c
+++ b/splash.c
@@ -22,7 +22,7 @@
 
 #define  MAX_SPLASH_IMAGES      (30)
 #define  FILENAME_LENGTH        (100)
-#define  MAX_SPLASH_WAITTIME    (5)
+#define  MAX_SPLASH_WAITTIME    (8)
 
 typedef union {
 	uint32_t  *as_pixels;
@@ -332,6 +332,13 @@
 			} else {
 				LOG(ERROR, "unable to open drm_master_relax");
 			}
+		} else {
+			/*
+			 * Below, we will wait for Chrome to appear above the splash
+			 * image.  If we are not in dev mode, wait and then exit
+			 */
+			sleep(MAX_SPLASH_WAITTIME);
+			exit(EXIT_SUCCESS);
 		}
 	}