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

Unified Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 8490014: [filebrowser] Historgram for the file browser's open time. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added comments Created 9 years, 1 month 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 | chrome/browser/resources/file_manager/js/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index 5810249270651165563a40e9fb1e2a5d58543e73..fbdeef1f9db5da17f090d941b7c4d2672f60f021 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -56,6 +56,8 @@ function FileManager(dialogDom, filesystem, rootEntries) {
this.document_ = dialogDom.ownerDocument;
this.dialogType_ = this.params_.type || FileManager.DialogType.FULL_PAGE;
+ metrics.recordAction('Create.' + this.dialogType_);
+
this.initDialogs_();
// TODO(dgozman): This will be changed to LocaleInfo.
@@ -2935,8 +2937,11 @@ FileManager.prototype = {
var self = this;
var reader;
+ metrics.startInterval('ScanDirectory');
+
function onReadSome(entries) {
if (entries.length == 0) {
+ metrics.recordTime('ScanDirectory');
if (opt_callback)
opt_callback();
return;
@@ -2987,6 +2992,7 @@ FileManager.prototype = {
spliceArgs.unshift(0, 0); // index, deleteCount
self.dataModel_.splice.apply(self.dataModel_, spliceArgs);
+ metrics.recordTime('ScanDirectory');
if (opt_callback)
opt_callback();
};
@@ -3234,6 +3240,8 @@ FileManager.prototype = {
};
FileManager.prototype.createNewFolder = function(name, opt_callback) {
+ metrics.recordAction('CreateNewFolder');
+
var self = this;
function onSuccess(dirEntry) {
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698