Split ICU data file for chromeos.

This is to prepare for later we can trim data only needed for
chromeos from the data files in common.

Bug: v8:8515
Change-Id: I81e88376046e57a7c415dae9d05083abf6d91558
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/deps/icu/+/1503687
Reviewed-by: Jungshik Shin <jshin@chromium.org>
diff --git a/BUILD.gn b/BUILD.gn
index 4c7d251..5811dd7 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -1075,6 +1075,8 @@
   data_dir = "android"
 } else if (is_ios) {
   data_dir = "ios"
+} else if (is_chromeos) {
+  data_dir = "chromeos"
 } else {
   data_dir = "common"
 }
diff --git a/chromeos/icudtl.dat b/chromeos/icudtl.dat
new file mode 100644
index 0000000..4663760
--- /dev/null
+++ b/chromeos/icudtl.dat
Binary files differ
diff --git a/scripts/copy_data.sh b/scripts/copy_data.sh
index e83496e..dedc8f1 100755
--- a/scripts/copy_data.sh
+++ b/scripts/copy_data.sh
@@ -9,7 +9,7 @@
 
 if [ $# -lt 1 ];
 then
-  echo "Usage: "$0" (common|android|ios)" >&2
+  echo "Usage: "$0" (android|cast|chromeos|common|flutter|ios)" >&2
   exit 1
 fi
 
@@ -32,6 +32,15 @@
   echo "Done with copying pre-built ICU data files."
 }
 
+function copy_chromeos {
+  DATA_FILE="data/out/tmp/icudt${VERSION}l.dat"
+
+  echo "Copying icudtl.dat"
+  cp "${DATA_FILE}" "${TOPSRC}/chromeos/icudtl.dat"
+
+  echo "Done with copying pre-built ICU data files for chromeos."
+}
+
 function copy_android_ios {
   echo "Copying icudtl.dat for $1"
 
@@ -70,6 +79,9 @@
 }
 
 case "$1" in
+  "chromeos")
+    copy_chromeos
+    ;;
   "common")
     copy_common
     ;;
diff --git a/scripts/make_data_all.sh b/scripts/make_data_all.sh
index bf11a6c..fb995bc 100755
--- a/scripts/make_data_all.sh
+++ b/scripts/make_data_all.sh
@@ -6,6 +6,9 @@
 
 $ICUROOT/scripts/trim_data.sh
 $ICUROOT/scripts/make_data.sh
+$ICUROOT/scripts/copy_data.sh chromeos
+# TODO(ftang) trim data only needed for chromeos
+$ICUROOT/scripts/make_data.sh
 $ICUROOT/scripts/copy_data.sh common
 $ICUROOT/cast/patch_locale.sh
 $ICUROOT/scripts/make_data.sh