Reland "Refractor manage_render_test_goldens.py and add manage_wpr_archives.py"

This is a reland of 41dddd7d4e009af1f845d977fcf3f33fda32268e

changes: fix logging.info and logging.error syntax issue.

Original change's description:
> Refractor manage_render_test_goldens.py and add manage_wpr_archives.py
>
> [email protected],[email protected]
>
> Bug: 1060399
> Change-Id: Ifb06c6a94a51a6b1a2815bf94fa8f5a53dec1db8
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2219525
> Reviewed-by: Haiyang Pan <[email protected]>
> Reviewed-by: Robbie Iannucci <[email protected]>
> Reviewed-by: Dan H <[email protected]>
> Reviewed-by: Brian Sheedy <[email protected]>
> Commit-Queue: Arthur Wang <[email protected]>
> Cr-Commit-Position: refs/heads/master@{#774253}

Bug: 1060399
Change-Id: Id5e989cfca591e5f1aacd4f5024d29e894dae919
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225243
Reviewed-by: Robbie Iannucci <[email protected]>
Reviewed-by: Dan H <[email protected]>
Reviewed-by: Brian Sheedy <[email protected]>
Commit-Queue: Arthur Wang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#774501}
diff --git a/DEPS b/DEPS
index e9bbb2b..fff7141 100644
--- a/DEPS
+++ b/DEPS
@@ -117,6 +117,10 @@
   'checkout_traffic_annotation_tools': 'checkout_configuration != "small"',
   'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration != "small"',
 
+  # By default bot checkouts the WPR archive files only when this
+  # flag is set True.
+  'checkout_wpr_archives': False,
+
   # By default, do not check out WebKit for iOS, as it is not needed unless
   # running against ToT WebKit rather than system WebKit. This can be overridden
   # e.g. with custom_vars.
@@ -4573,6 +4577,16 @@
                 'download',
     ],
   },
+  # Pull down WPR Archive files
+  {
+    'name': 'Fetch WPR archive files',
+    'pattern': '.',
+    'condition': 'checkout_android and (checkout_wpr_archives or checkout_src_internal)',
+    'action': [ 'python',
+                'src/chrome/test/data/android/manage_wpr_archives.py',
+                'download',
+    ],
+  },
   {
     'name': 'Fetch Android AFDO profile',
     'pattern': '.',