blob: cd94a2876cc64f5c139ebca32b5bef7298b79652 [file] [log] [blame]
skym6c146622017-05-25 21:39:041// Copyright 2017 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5cr.define('chrome.sync.user_events', function() {
6 function write() {
7 chrome.sync.writeUserEvent(
8 $('event-time-usec-input').value,
9 $('navigation-id-input').value);
10 }
11
12 function onLoad() {
13 $('create-event-button').addEventListener('click', write);
14 }
15
16 return {
17 onLoad: onLoad
18 };
19});
20
21document.addEventListener(
22 'DOMContentLoaded',
23 chrome.sync.user_events.onLoad,
24 false);