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

Side by Side Diff: components/sync/driver/resources/user_events.js

Issue 2872023002: [Sync] Add a simple UI to sync-internals to create UserEvents. (Closed)
Patch Set: Rebase Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « components/sync/driver/resources/user_events.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // 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
5 cr.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
21 document.addEventListener(
22 'DOMContentLoaded',
23 chrome.sync.user_events.onLoad,
24 false);
OLDNEW
« no previous file with comments | « components/sync/driver/resources/user_events.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698