Use Chromium Git mirror for AppRTC

AppRTC and the other WebRTC samples have moved to GitHub.
In crbug.com/377394 a mirror was setup for it that we can
use for the automated tests we have.

These modifications will make the change transparent to
the test (and hopefully it still passes with the latest
version).

BUG=362483
TEST=Locally syncing and running hooks and verifying the out/apprtc
contains the newly copied files.

Review URL: https://codereview.chromium.org/316013004

git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/webrtc/webrtc.DEPS@275043 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
diff --git a/DEPS b/DEPS
index 6e8a46d..79e9f52 100644
--- a/DEPS
+++ b/DEPS
@@ -1,15 +1,16 @@
-# DEPS file that pulls down dependencies that are needed to build and 
+# DEPS file that pulls down dependencies that are needed to build and
 # execute WebRTC Android tests from a Chromium checkout.
 
 vars = {
+  "chromium_git": "https://chromium.googlesource.com",
   # Use this googlecode_url variable only if there is an internal mirror for it.
   # If you do not know, use the full path while defining your new deps entry.
   "googlecode_url": "http://%s.googlecode.com/svn",
 }
 
 deps = {
-  "src/third_party/webrtc_apprtc":
-    (Var("googlecode_url") % "webrtc") + "/trunk/samples/js",
+  "webrtc-samples":
+    Var("chromium_git") + "/external/webrtc-samples.git",
   "webrtc.DEPS/third_party/manifestdestiny":
     "/trunk/deps/third_party/manifestdestiny@240893",
   "webrtc.DEPS/third_party/mozdownload":
@@ -26,9 +27,9 @@
 
 deps_os = {
   "android": {
-    "src/data": 
+    "src/data":
       (Var("googlecode_url") % "webrtc") + "/trunk/data",
-    "src/resources": 
+    "src/resources":
       (Var("googlecode_url") % "webrtc") + "/trunk/resources",
     "src/third_party/gflags":
       (Var("googlecode_url") % "webrtc") + "/trunk/third_party/gflags",
@@ -79,7 +80,7 @@
     "pattern": ".",
     "action" : ["python",
                 "webrtc.DEPS/download_firefox_nightly.py",
-                "-t", 
+                "-t",
                 "firefox-nightly"],
   },
 ]
diff --git a/copy_apprtc.py b/copy_apprtc.py
index 39383bb..c091aa6 100755
--- a/copy_apprtc.py
+++ b/copy_apprtc.py
@@ -14,8 +14,9 @@
 
 
 if __name__ == '__main__':
+  web_samples_dir = 'webrtc-samples/samples/web'
   shutil.rmtree('src/out/apprtc', ignore_errors=True)
-  shutil.copytree('src/third_party/webrtc_apprtc/apprtc',
+  shutil.copytree(web_samples_dir + '/content/apprtc',
                   'src/out/apprtc', ignore=shutil.ignore_patterns('.svn'))
-  shutil.copyfile('src/third_party/webrtc_apprtc/base/adapter.js',
+  shutil.copyfile(web_samples_dir + '/js/adapter.js',
 		  'src/out/apprtc/js/adapter.js')