| Index: chrome/browser/resources/profiler/profiler.js
|
| diff --git a/chrome/browser/resources/profiler/profiler.js b/chrome/browser/resources/profiler/profiler.js
|
| index 86724b9b4c2263211fb580d3dfe46e1d625f63ad..156e806e03b2cb8da574486fc832e34483690eb6 100644
|
| --- a/chrome/browser/resources/profiler/profiler.js
|
| +++ b/chrome/browser/resources/profiler/profiler.js
|
| @@ -2088,25 +2088,25 @@ var MainView = (function() {
|
|
|
| // Scan through our sort order and see if we are already sorted on this
|
| // key. If so, reverse that sort ordering.
|
| - var found_i = -1;
|
| + var foundIndex = -1;
|
| for (var i = 0; i < this.currentSortKeys_.length; ++i) {
|
| var curKey = this.currentSortKeys_[i];
|
| if (sortKeysMatch(curKey, key)) {
|
| this.currentSortKeys_[i] = reverseSortKey(curKey);
|
| - found_i = i;
|
| + foundIndex = i;
|
| break;
|
| }
|
| }
|
|
|
| if (event.altKey) {
|
| - if (found_i == -1) {
|
| + if (foundIndex == -1) {
|
| // If we weren't already sorted on the column that was alt-clicked,
|
| // then add it to our sort.
|
| this.currentSortKeys_.push(key);
|
| }
|
| } else {
|
| - if (found_i != 0 ||
|
| - !sortKeysMatch(this.currentSortKeys_[found_i], key)) {
|
| + if (foundIndex != 0 ||
|
| + !sortKeysMatch(this.currentSortKeys_[foundIndex], key)) {
|
| // If the column we left-clicked wasn't already our primary column,
|
| // make it so.
|
| this.currentSortKeys_ = [key];
|
|
|