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

Unified Diff: ui/file_manager/file_manager/common/js/unittest_util.js

Issue 886483004: Include a machine id in log files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to review comments. Created 5 years, 11 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 | « ui/file_manager/file_manager/common/js/importer_common_unittest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/common/js/unittest_util.js
diff --git a/ui/file_manager/file_manager/common/js/unittest_util.js b/ui/file_manager/file_manager/common/js/unittest_util.js
index a47b43b6228730ab50af551ea19ae9f91b04055e..21629948763806761ed15d7b88b6414e548d7d0f 100644
--- a/ui/file_manager/file_manager/common/js/unittest_util.js
+++ b/ui/file_manager/file_manager/common/js/unittest_util.js
@@ -200,12 +200,13 @@ function MockChromeStorageAPI() {
* @private
*/
MockChromeStorageAPI.prototype.get_ = function(keys, callback) {
- var keyArray = keys instanceof Array ? keys : [keys];
+ var keys = keys instanceof Array ? keys : [keys];
var result = {};
- for (var key in keys) {
- if (key in this.state)
- result[key] = this.state[key];
- }
+ keys.forEach(
+ function(key) {
+ if (key in this.state)
+ result[key] = this.state[key];
+ }.bind(this));
callback(result);
};
« no previous file with comments | « ui/file_manager/file_manager/common/js/importer_common_unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698