summaryrefslogtreecommitdiffstats
path: root/content/browser/resources/media
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-20 04:14:46 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-20 04:14:46 +0000
commit980cd933535887bb37e22775c1d8e4002e18c5aa (patch)
tree0498f4524f21b6eed79981181586597d7811a986 /content/browser/resources/media
parentcf6a02408972586fb3b92f8ddfb185a8fb0fa363 (diff)
downloadchromium_src-980cd933535887bb37e22775c1d8e4002e18c5aa.zip
chromium_src-980cd933535887bb37e22775c1d8e4002e18c5aa.tar.gz
chromium_src-980cd933535887bb37e22775c1d8e4002e18c5aa.tar.bz2
Sort the chrome://media-internals properties table by key name.
This makes it easier to find certain properties. Review URL: https://codereview.chromium.org/63433004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236139 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/resources/media')
-rw-r--r--content/browser/resources/media/client_renderer.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/resources/media/client_renderer.js b/content/browser/resources/media/client_renderer.js
index cac70e8..97acba2 100644
--- a/content/browser/resources/media/client_renderer.js
+++ b/content/browser/resources/media/client_renderer.js
@@ -146,7 +146,9 @@ var ClientRenderer = (function() {
drawProperties_: function(propertyMap) {
removeChildren(this.propertiesTable);
- for (key in propertyMap) {
+ var sortedKeys = Object.keys(propertyMap).sort();
+ for (var i = 0; i < sortedKeys.length; ++i) {
+ var key = sortedKeys[i];
var value = propertyMap[key];
var row = this.propertiesTable.insertRow(-1);