| Index: chrome/browser/resources/host_registration_page.html
|
| diff --git a/chrome/browser/resources/host_registration_page.html b/chrome/browser/resources/host_registration_page.html
|
| index a6cf0b280a85ccb252195d934b214512beab74d3..101e812bd92bc4eddae52af3e76b3a0acd5d7fce 100644
|
| --- a/chrome/browser/resources/host_registration_page.html
|
| +++ b/chrome/browser/resources/host_registration_page.html
|
| @@ -3,6 +3,32 @@
|
| <head>
|
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
| <title>Register your computer with Google</title>
|
| +<script>
|
| +
|
| +document.addEventListener('DOMContentLoaded', load);
|
| +
|
| +function load() {
|
| + chrome.send('getRegistrationUrl', []);
|
| +}
|
| +
|
| +function $(o) {
|
| + return document.getElementById(o);
|
| +}
|
| +
|
| +function setRegistrationUrl(url) {
|
| + // TODO(nkostylev): Load URL in iframe.
|
| +}
|
| +
|
| +// Called when document has been loaded in an iframe.
|
| +function onFormLoaded() {
|
| + chrome.send('getUserInfo', []);
|
| +}
|
| +
|
| +function setUserInfo(data) {
|
| + // TODO(nkostylev): Pass system/user data to registration iframe.
|
| +}
|
| +
|
| +</script>
|
| </head>
|
| <body>
|
| <!-- TODO(nkostylev): Redirect to cros://register/[success|skipped]. -->
|
|
|