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

Unified Diff: tools/android/adb_remote_setup.sh

Issue 960873002: Update from https://crrev.com/318214 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « third_party/sqlite/BUILD.gn ('k') | tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/adb_remote_setup.sh
diff --git a/tools/android/adb_remote_setup.sh b/tools/android/adb_remote_setup.sh
index 2bb2c46d32220e48544487d3ce5442562364d9b1..ff9f126877f260356c2ebc20eeffbe4393a290ab 100755
--- a/tools/android/adb_remote_setup.sh
+++ b/tools/android/adb_remote_setup.sh
@@ -4,14 +4,19 @@
# found in the LICENSE file.
# URL from which the latest version of this script can be downloaded.
-script_url="http://src.chromium.org/svn/trunk/src/tools/android/adb_remote_setup.sh"
+# Gitiles returns the result as base64 formatted, so the result needs to be
+# decoded. See https://code.google.com/p/gitiles/issues/detail?id=7 for
+# more information about this security precaution.
+script_url="https://chromium.googlesource.com/chromium/src.git/+/master"
+script_url+="/tools/android/adb_remote_setup.sh"
+script_url+="?format=TEXT"
# Replaces this file with the latest version of the script and runs it.
update-self() {
local script="${BASH_SOURCE[0]}"
local new_script="${script}.new"
local updater_script="${script}.updater"
- curl -sSf -o "$new_script" "$script_url" || return
+ curl -sSf "$script_url" | base64 --decode > "$new_script" || return
chmod +x "$new_script" || return
# Replace this file with the newly downloaded script.
« no previous file with comments | « third_party/sqlite/BUILD.gn ('k') | tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698