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

Unified Diff: chrome/test/data/extensions/api_test/notifications/has_permission_manifest/background.js

Issue 10808113: Only allows extensions to create HTML notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/notifications/has_permission_manifest/background.js
diff --git a/chrome/test/data/extensions/api_test/notifications/has_permission_manifest/background.js b/chrome/test/data/extensions/api_test/notifications/has_permission_manifest/background.js
index 9bc585a6031837da4ea33752774689cbf6f3134a..79fb80a6e6cf1da47f520094ed9c9a4d8601f5b4 100644
--- a/chrome/test/data/extensions/api_test/notifications/has_permission_manifest/background.js
+++ b/chrome/test/data/extensions/api_test/notifications/has_permission_manifest/background.js
@@ -26,11 +26,9 @@ function onNotificationDone() {
if (changeInfo.status != 'complete')
return;
// web_page1 loaded, open extension page to inject script
- if (tab.url == chromeExtensionsUrl) {
- console.log(chromeExtensionsUrl + ' finished loading.');
- chrome.tabs.onUpdated.removeListener(listener);
- chrome.test.succeed();
- }
+ console.log(chromeExtensionsUrl + ' finished loading.');
+ chrome.tabs.onUpdated.removeListener(listener);
+ chrome.test.succeed();
};
chrome.tabs.onUpdated.addListener(listener);

Powered by Google App Engine
This is Rietveld 408576698