Add the old version of the snapshot tool.

For comparison purposes, add the "final" version of the old snapshot
tool to this repository. It was previously in external/chromium_org.

Change-Id: Id9063d22ce7507b01f44dd7a37b31fbdcd25ef66
Bring old snapshot tool up to date.

1) Remove several projects from the list of projects to merge as we
don't need them and they have licenses we don't want.

2) Add support for snapshotting from a branch other than "master"
upstream (to avoid bringing in the git submodule commits), and switch
the upstream URL to use the right repo.

3) Fix a bug where the script would fail if there was no incompatibly
licensed code to remove.

Change-Id: I6a9b9ee0f80a2fe5551878c8eab0b11e064dd3b0
Rewrite snapshot tool to do separate merges.

Instead of merging all the code into a single repository with subtree
merges, merge them into separate repositories. The tool has been renamed
to make it clearer what it's doing (it's not really taking a snapshot as
history is preserved).

Change-Id: I02a2b5148da887e852915f4887915e60f9caacf8
Add ICU to the list of projects to merge.

ICU contains some code under an incompatible license so this also
requires changes to the way that incompatible license processing works.
The Chromium upstream known_incompatible has already been updated to
group the incompatible directories by repository, the matching change to
the tool is here.
Avoid littering source tree with .pyc files.

Set sys.dont_write_bytecode before importing modules from inside the
source tree, to avoid polluting it with .pyc files. Also, export
PYTHONDONTWRITEBYTECODE when running gyp in order that gyp and grit
don't create .pyc files either.

Change-Id: I4a02238009edc31bdfb168df42369f6e98354bb4
Update LASTCHANGE during merge.

Chromium expects build/util/LASTCHANGE to contain the current SVN
revision and won't build without it. Create/update this during the
merge.

Change-Id: If25219359a010ee6c0adbb064103102a8a2dca92
Update merge tool to new cacheinvalidation repo.

Replace the old cacheinvalidation repository path with the new one.
Also, fix the error message for when a project is not found to refer to
the new name of the script.

Change-Id: I8cc43cbedc537c2a5c5b51c60d1d463f592000e3
Make the merge tool handle "UA" conflicts.

This conflict type happens when upstream renames a file we deleted for
licensing reasons. Allow the file to be re-added in case it was renamed
to a path we don't delete; it will be deleted again in the next step if
it's still in a directory we delete.

Also, simplify the existing conflict resolution code; findall returns a
string if there's only one match group, but a tuple if there's more than
one.

Change-Id: I3b55b6549b746e9e530977d99ad541e0eac096e0
Make the merge tool push the result of the merge.

If the merge succeeds, the tool will prompt to push it to the server.
The prompt can be bypassed with --autopush for use in a script.

Change-Id: I4fd6a46c6055f92d383816112ff1b9ef4c3ff66f
Add initial version of webviewchromium glue layer.

Import the webviewchromium glue layer from the internal forked branch
where it was developed.

Change-Id: I685af58b50fc53a3e17f4506b2f8e830370c7840
Fix merge tool to not depend on its own location.

Use ANDROID_BUILD_TOP to find the chromium_org directory (since we
require it to be set to generate makefiles anyway) instead of using a
path relative to the script itself (which was broken since the script
moved from tools to chromium/tools).

Change-Id: I25df9ad3d04756b50931d99c03bc1088baa41c1b
onFormResubmission glue implementation

Change-Id: Ie388329c85823dc4ed573f5a1653886eb77393f1
Remove chromium projects not needed to build webview.

The list of projects required to build WebView has reduced since the
initial snapshot; remove the ones not used for now. They can always be
readded later if necessary.

Change-Id: I6a3889ed42ec91dcd1a9bb519ab7b968ee493159
Plumb through WebSettings.get/setJavaScriptCanOpenWindowsAutomatically

BUG=7262225

Change-Id: I6d659ab7890d8180003d809657a84e0096f05874
Merge "Plumb through WebSettings.get/setJavaScriptCanOpenWindowsAutomatically" into master-chromium
Merge "Create a phony "webview" module" into master-chromium

Change-Id: I5a2da838a061a497eeacac4aafd2d57d1ab394e4
Plumb WebSettings.[set]supportMultipleWindows.

Bug: 7262225
Change-Id: Ia229179ea8edb97d938e683d29285ef265e0711c
Merge "Plumb WebSettings.[set]supportMultipleWindows." into master-chromium
Remove ContentViewCore from WebViewChromium.

AwContents now owns the ContentViewCore instance.

Change-Id: Id57c4ed4a0c7026a61380b9f987d4d427d8e504e
Merge tool: refactor reusable code.

The merge-to-master tool will need to reuse some of the code in the
merge-from-chromium tool. Refactor it into a separate module. No
functional changes.

The tool has also been renamed to merge_from_chromium as underscores are
the convention for python module names.

Change-Id: I87a4b4def579364c51b3b03ad993a66d33fdd7ea