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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc

Issue 640543002: Add histograms about files copied or movied files from or to Drive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste m.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste m.h"
6 6
7 #include <sys/statvfs.h> 7 #include <sys/statvfs.h>
8 8
9 #include "base/metrics/histogram.h"
9 #include "base/posix/eintr_wrapper.h" 10 #include "base/posix/eintr_wrapper.h"
10 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
12 #include "base/task_runner_util.h" 13 #include "base/task_runner_util.h"
13 #include "base/threading/sequenced_worker_pool.h" 14 #include "base/threading/sequenced_worker_pool.h"
14 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/chromeos/drive/drive.pb.h" 16 #include "chrome/browser/chromeos/drive/drive.pb.h"
16 #include "chrome/browser/chromeos/drive/file_system_interface.h" 17 #include "chrome/browser/chromeos/drive/file_system_interface.h"
17 #include "chrome/browser/chromeos/drive/file_system_util.h" 18 #include "chrome/browser/chromeos/drive/file_system_util.h"
18 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" 19 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h"
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 "/" + entry_definition_list->at(i).full_path.AsUTF8Unsafe(); 666 "/" + entry_definition_list->at(i).full_path.AsUTF8Unsafe();
666 entry->file_is_directory = entry_definition_list->at(i).is_directory; 667 entry->file_is_directory = entry_definition_list->at(i).is_directory;
667 entries.push_back(entry); 668 entries.push_back(entry);
668 } 669 }
669 670
670 results_ = extensions::api::file_manager_private_internal:: 671 results_ = extensions::api::file_manager_private_internal::
671 ResolveIsolatedEntries::Results::Create(entries); 672 ResolveIsolatedEntries::Results::Create(entries);
672 SendResponse(true); 673 SendResponse(true);
673 } 674 }
674 } // namespace extensions 675 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698