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

Unified Diff: chrome/test/data/extensions/subscribe_page_action/popup.js

Issue 10407017: Convert RSS extension to use manifest version 2 (with CSP protection). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/subscribe_page_action/popup.js
===================================================================
--- chrome/test/data/extensions/subscribe_page_action/popup.js (revision 137495)
+++ chrome/test/data/extensions/subscribe_page_action/popup.js (working copy)
@@ -1,29 +1,9 @@
-<!--
- * Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
+/*
+ * Copyright (c) 2012 The Chromium Authors. All rights reserved. Use of this
* source code is governed by a BSD-style license that can be found in the
* LICENSE file.
--->
-<html>
-<head>
-<style>
- body {
- overflow-x: hidden;
- }
+ */
- .heading {
- font-family: Helvetica, Arial;
- font-size: small;
- font-weight: bold;
- margin-left: 2px;
- }
-
- .feedList {
- font-family: Helvetica, Arial;
- font-size: small;
- vertical-align: bottom;
- }
-</style>
-<script>
function feedLink(url) {
var feed_link = document.createElement('a');
feed_link.href = url;
@@ -93,11 +73,6 @@
chrome.tabs.create({ url: url });
window.close();
}
-</script>
-</head>
-<body onload="javascript:main()">
- <div id="content">
- <span id="heading" class="heading">Loading...</span>
- </div>
-</body>
-</html>
+
+// Init on DOM ready.
+document.addEventListener('DOMContentLoaded', main);

Powered by Google App Engine
This is Rietveld 408576698