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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/workspace/IsolatedFileSystem.js

Issue 2163093003: [DevTools] Remove Object.values and Object.isEmpty from utilities.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 { 519 {
520 var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(erro r); 520 var errorMessage = WebInspector.IsolatedFileSystem.errorMessage(erro r);
521 console.error(errorMessage + " when requesting entry '" + path + "'" ); 521 console.error(errorMessage + " when requesting entry '" + path + "'" );
522 callback([]); 522 callback([]);
523 } 523 }
524 }, 524 },
525 525
526 _saveExcludedFolders: function() 526 _saveExcludedFolders: function()
527 { 527 {
528 var settingValue = this._excludedFoldersSetting.get(); 528 var settingValue = this._excludedFoldersSetting.get();
529 settingValue[this._path] = Array.from(this._excludedFolders.values()); 529 settingValue[this._path] = this._excludedFolders.valuesArray();
530 this._excludedFoldersSetting.set(settingValue); 530 this._excludedFoldersSetting.set(settingValue);
531 }, 531 },
532 532
533 /** 533 /**
534 * @param {string} path 534 * @param {string} path
535 */ 535 */
536 addExcludedFolder: function(path) 536 addExcludedFolder: function(path)
537 { 537 {
538 this._excludedFolders.add(path); 538 this._excludedFolders.add(path);
539 this._saveExcludedFolders(); 539 this._saveExcludedFolders();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 /** 610 /**
611 * @param {!WebInspector.Progress} progress 611 * @param {!WebInspector.Progress} progress
612 */ 612 */
613 indexContent: function(progress) 613 indexContent: function(progress)
614 { 614 {
615 progress.setTotalWork(1); 615 progress.setTotalWork(1);
616 var requestId = this._manager.registerProgress(progress); 616 var requestId = this._manager.registerProgress(progress);
617 InspectorFrontendHost.indexPath(requestId, this._embedderPath); 617 InspectorFrontendHost.indexPath(requestId, this._embedderPath);
618 } 618 }
619 } 619 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698