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

Side by Side Diff: sync/tools/testserver/synced_notifications_app_info.html

Issue 780363003: Delete deprecated synced notifications code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 6 years 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 | « sync/tools/testserver/synced_notifications.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 <html>
2 <head>
3 <title>Synced notification App Info</title>
4
5 <script type="text/javascript">
6 // Creates link (appended to the bottom of the page body) to trigger a
7 // new synced notification app info. The link's title will be |title|
8 // and the ASCII-serialized app info will be
9 // |synced_notification_app_info|.
10 function appendSyncedNotificationAppInfoLink(title, app_info) {
11 var link = document.createElement('a');
12 link.innerHTML = title;
13 link.setAttribute('target', '_blank');
14 link.setAttribute('href', 'triggersyncednotificationappinfo?' +
15 'synced_notification_app_info=' +
16 encodeURIComponent(app_info));
17 document.body.appendChild(link);
18 }
19 </script>
20 </head>
21
22 <body>
23 <h1>Synced Notification App Info</h1>
24
25 <h2>Step 0: Sign in to the browser and set up Sync</h2>
26
27 <h2>Step 1: Click this link (only required once per server lifetime)</h2>
28
29 <a href="/customizeclientcommand?sessions_commit_delay_seconds=0">
30 Make synced notification app info triggering instant</a>
31
32 <h2>Step 2: Ctrl-Click the link below to send a synced notification app info </h2>
33
34 <script type="text/javascript">
35 // JSON version of an app info protobuf
36 appendSyncedNotificationAppInfoLink(
37 'Simple SyncedNotificationAppInfo',
38 'settings_display_name: \"Google Maps\"\n' +
39 'icon: {\n' +
40 ' alt_text: \"Google Maps\"\n' +
41 ' preferred_height: 80\n' +
42 ' preferred_width: 80\n' +
43 ' url: \"https://ssl.gstatic.com/s2/oz/images/notifications/app_icons/s ystem-gplus_62d72f2ec5e1ef193f0dfa600eabcfeb.png\"\n' +
44 '}\n' +
45 'app_id: \"maps_street_view\"\n' +
46 'app_id: \"maps_earth_view\"\n');
47 </script>
48 </body>
49 </html>
OLDNEW
« no previous file with comments | « sync/tools/testserver/synced_notifications.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698