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

Unified Diff: Source/devtools/front_end/main/Main.js

Issue 329113002: DevTools: Restore toolbar button order regressed in r175358 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/Main.js
diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
index a19a8f404a7e5ceaa14ef4127b6f7955c48585d1..b423b6469ab366befe86c9b472970121a935194d 100644
--- a/Source/devtools/front_end/main/Main.js
+++ b/Source/devtools/front_end/main/Main.js
@@ -66,6 +66,16 @@ WebInspector.Main.prototype = {
_createGlobalStatusBarItems: function()
{
var extensions = WebInspector.moduleManager.extensions(WebInspector.StatusBarButton.Provider);
+
+ /**
+ * @param {!WebInspector.ModuleManager.Extension} left
+ * @param {!WebInspector.ModuleManager.Extension} right
+ */
+ function orderComparator(left, right)
+ {
+ return left.descriptor()["order"] - right.descriptor()["order"];
+ }
+ extensions.sort(orderComparator);
extensions.forEach(function(extension) {
var button;
switch (extension.descriptor()["location"]) {
« no previous file with comments | « no previous file | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698