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

Unified Diff: content/browser/resources/indexed_db/indexeddb_internals.js

Issue 14118002: Implement read-only indexedb-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing, nits addressed Created 7 years, 8 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: content/browser/resources/indexed_db/indexeddb_internals.js
diff --git a/content/browser/resources/indexed_db/indexeddb_internals.js b/content/browser/resources/indexed_db/indexeddb_internals.js
index 045d355b78e35e62ef449c733955dfb8f649e183..9f589e32b0b917e45c11bbf4e813b1e01b9e826b 100644
--- a/content/browser/resources/indexed_db/indexeddb_internals.js
+++ b/content/browser/resources/indexed_db/indexeddb_internals.js
@@ -6,11 +6,21 @@ cr.define('indexeddb', function() {
'use strict';
function initialize() {
+ chrome.send('getAllOrigins');
+ }
+
+ function onOriginsReady(origins) {
+ console.log('Origins: ', origins);
+ var template = jstGetTemplate('indexeddb-list-template');
+ var container = $('indexeddb-list');
+ container.appendChild(template);
+ jstProcess(new JsEvalContext(origins), template);
}
return {
- initialize: initialize,
+ initialize: initialize,
+ onOriginsReady: onOriginsReady,
};
});

Powered by Google App Engine
This is Rietveld 408576698