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

Unified Diff: sync/tools/testserver/synced_notifications.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/tools/testserver/sync_testserver.py ('k') | sync/tools/testserver/synced_notifications_app_info.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/testserver/synced_notifications.html
diff --git a/sync/tools/testserver/synced_notifications.html b/sync/tools/testserver/synced_notifications.html
deleted file mode 100644
index 10cac3006803284feeba6db5e702b1af3bd4134f..0000000000000000000000000000000000000000
--- a/sync/tools/testserver/synced_notifications.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<html>
- <head>
- <title>Synced notifications</title>
-
- <script type="text/javascript">
- // Creates link (appended to the bottom of the page body) to trigger a
- // synced notifications. The link's title will be |title| and
- // |serialized_notification| is the ASCII-serialized version of the
- // CoalescedSyncedNotification to be triggered.
- function appendNotificationLink(title, serialized_notification) {
- var link = document.createElement('a');
- link.innerHTML = title;
- link.setAttribute('target', '_blank');
- link.setAttribute('href', 'triggersyncednotification?' +
- 'serialized_notification=' +
- encodeURIComponent(serialized_notification));
- document.body.appendChild(link);
- }
- </script>
- </head>
-
- <body>
- <h1>Synced notifications</h1>
-
- <h2>Step 0: Sign in to the browser and set up Sync</h2>
-
- <h2>Step 1: Click this link (only required once per server lifetime)</h2>
-
- <a href="/customizeclientcommand?sessions_commit_delay_seconds=0">
- Make notifications triggering instant</a>
-
- <h2>Step 2: Ctrl-Click the links below to trigger synced notifications</h2>
-
- <script type="text/javascript">
- appendNotificationLink('Simple notification',
- 'key: \"foo\"\n' +
- 'priority: 2\n' +
- 'read_state: 1\n' +
- 'render_info {\n' +
- ' collapsed_info {\n' +
- ' creation_timestamp_usec: 42\n' +
- ' simple_collapsed_layout {\n' +
- ' annotation: \"Space Needle, 12:00 pm\"\n' +
- ' description: \"Space Needle, 12:00 pm\"\n' +
- ' heading: \"New appointment\"\n' +
- ' }\n' +
- ' }\n' +
- '}');
- </script>
- <br/>
- <script type="text/javascript">
- appendNotificationLink('New Service notification',
- 'key: \"foo\"\n' +
- 'app_id: \"maps_street_view\"\n' +
- 'priority: 2\n' +
- 'read_state: 1\n' +
- 'render_info {\n' +
- ' collapsed_info {\n' +
- ' creation_timestamp_usec: 42\n' +
- ' simple_collapsed_layout {\n' +
- ' annotation: \"787 6th Street South\"\n' +
- ' description: \"Building B\"\n' +
- ' heading: \"Google Kirkland\"\n' +
- ' }\n' +
- ' }\n' +
- '}');
- </script>
- </body>
-</html>
« no previous file with comments | « sync/tools/testserver/sync_testserver.py ('k') | sync/tools/testserver/synced_notifications_app_info.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698