[ios] Adds the option for fetching ToT WebKit in iOS checkouts.

BUG=None

Change-Id: I9ed6941bf10715340b26fe6a5d37390d699ce10e
Reviewed-on: https://chromium-review.googlesource.com/c/1407489
Commit-Queue: Rohit Rao <[email protected]>
Reviewed-by: Dirk Pranke <[email protected]>
Cr-Commit-Position: refs/heads/master@{#629282}
diff --git a/DEPS b/DEPS
index 04fb1ae..8924a989 100644
--- a/DEPS
+++ b/DEPS
@@ -91,6 +91,11 @@
   'checkout_traffic_annotation_tools': 'checkout_configuration != "small"',
   'checkout_instrumented_libraries': 'checkout_linux and checkout_configuration != "small"',
 
+  # 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.
+  'checkout_ios_webkit': False,
+
   # Default to the empty board. Desktop Chrome OS builds don't need cros SDK
   # dependencies. Other Chrome OS builds should always define this explicitly.
   'cros_board': '',
@@ -421,6 +426,11 @@
       'condition': 'checkout_ios',
   },
 
+  'src/ios/third_party/webkit/src': {
+      'url': 'https://chromium.googlesource.com/external/Webkit',
+      'condition': 'checkout_ios and checkout_ios_webkit'
+  },
+
   'src/media/cdm/api':
     Var('chromium_git') + '/chromium/cdm.git' + '@' + '817c8005a57ea3ca417f767b3b3679601329afd8',