Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: tools/dartium/generate_patches.sh

Issue 2875773003: Roll 50: Updated for push to origin/master. (Closed)
Patch Set: Roll 50: Updated to latest Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/dartium/generate_patches.sh
diff --git a/tools/dartium/generate_patches.sh b/tools/dartium/generate_patches.sh
index 11c73b8d21e5b2b207cc2545bca4378ca0a15d2a..af8c2da6eaf27f037cd4ad51eff807bd77ff1f2a 100755
--- a/tools/dartium/generate_patches.sh
+++ b/tools/dartium/generate_patches.sh
@@ -26,15 +26,29 @@ set -x
# build Dartium, run this script and build Dartium again with the newly
# generated patches.
+ARG_OPTION="dartGenCachedPatches"
+
+LOCATION_DARTIUM="../../../out/Release"
+DARTIUM="$LOCATION_DARTIUM"
+
if [[ "$1" != "" ]] ; then
- DARTIUM="$1"
-else
- LOCATION_DARTIUM="../../../out/Release"
- DARTIUM="$LOCATION_DARTIUM"
+ if [[ "$1" =~ ^--roll ]]; then
+ ARG_OPTION="dartGenCachedPatchesForRoll"
+ else
+ DARTIUM="$1"
+ fi
+fi
+
+if [[ "$2" != "" ]] ; then
+ if [[ "$2" =~ ^--roll ]]; then
+ ARG_OPTION="dartGenCachedPatchesForRoll"
+ else
+ DARTIUM="$2"
+ fi
fi
DART_APP_LOCATION="file://"$PWD"/generate_app/generate_cached_patches.html"
-DARTIUM_ARGS=" --user-data-dir=out --disable-web-security --no-sandbox --enable-blink-features=dartGenCachedPatches"
+DARTIUM_ARGS=" --user-data-dir=out --disable-web-security --no-sandbox --enable-blink-features="$ARG_OPTION""
CACHED_PATCHES_FILE=""$PWD"/../../sdk/lib/js/dartium/cached_patches.dart"
cmd=""$DARTIUM"/chrome "$DARTIUM_ARGS" "$DART_APP_LOCATION" |

Powered by Google App Engine
This is Rietveld 408576698