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

Side by Side Diff: chrome/test/data/extensions/api_test/notifications/has_permission_manifest/background.html

Issue 7892031: Revert 101081 - Redirect chrome://extensions to the new chrome://settings/chromeExtensions (attem... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extension_management_browsertest.cc ('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
1 <script> 1 <script>
2 var notification = null; 2 var notification = null;
3 var chromeExtensionsUrl = "chrome://settings/extensionSettings"; 3 var chromeExtensionsUrl = "chrome://extensions/";
4 4
5 // Shows the notification window using the specified URL. 5 // Shows the notification window using the specified URL.
6 // Control continues at onNotificationDone(). 6 // Control continues at onNotificationDone().
7 function showNotification(url) { 7 function showNotification(url) {
8 notification = window.webkitNotifications.createHTMLNotification(url); 8 notification = window.webkitNotifications.createHTMLNotification(url);
9 notification.onerror = function() { 9 notification.onerror = function() {
10 chrome.test.fail("Failed to show notification."); 10 chrome.test.fail("Failed to show notification.");
11 }; 11 };
12 notification.show(); 12 notification.show();
13 } 13 }
(...skipping 27 matching lines...) Expand all
41 chrome.test.succeed(); 41 chrome.test.succeed();
42 }, 42 },
43 function absoluteURL() { 43 function absoluteURL() {
44 showNotification(chrome.extension.getURL("notification.html")); 44 showNotification(chrome.extension.getURL("notification.html"));
45 }, 45 },
46 function relativeURL() { 46 function relativeURL() {
47 showNotification('notification.html'); 47 showNotification('notification.html');
48 } 48 }
49 ]); 49 ]);
50 </script> 50 </script>
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698