summaryrefslogtreecommitdiffstats
path: root/webkit/browser/fileapi/sandbox_file_system_backend.cc
diff options
context:
space:
mode:
authornhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 03:51:05 +0000
committernhiroki@chromium.org <nhiroki@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-31 03:51:05 +0000
commitfd5b7c9eb2ad8f74144bbaf76b985a8561a771b1 (patch)
tree65794dc740837d01ab5e2ce99e1fb486cbb650bb /webkit/browser/fileapi/sandbox_file_system_backend.cc
parent676c2e115019871db3d5eb106d248e72529793d8 (diff)
downloadchromium_src-fd5b7c9eb2ad8f74144bbaf76b985a8561a771b1.zip
chromium_src-fd5b7c9eb2ad8f74144bbaf76b985a8561a771b1.tar.gz
chromium_src-fd5b7c9eb2ad8f74144bbaf76b985a8561a771b1.tar.bz2
FileAPI: Remove UMAs for OpenFileSystem operation
BUG=none TEST=none (no behavioral changes) R=kinuko@chromium.org, tzik@chromium.org Review URL: https://codereview.chromium.org/20303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214544 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/sandbox_file_system_backend.cc')
-rw-r--r--webkit/browser/fileapi/sandbox_file_system_backend.cc18
1 files changed, 1 insertions, 17 deletions
diff --git a/webkit/browser/fileapi/sandbox_file_system_backend.cc b/webkit/browser/fileapi/sandbox_file_system_backend.cc
index 5b3301f..e7b0b63 100644
--- a/webkit/browser/fileapi/sandbox_file_system_backend.cc
+++ b/webkit/browser/fileapi/sandbox_file_system_backend.cc
@@ -39,9 +39,6 @@ namespace fileapi {
namespace {
-const char kChromeScheme[] = "chrome";
-const char kExtensionScheme[] = "chrome-extension";
-
const char kOpenFileSystemLabel[] = "FileSystem.OpenFileSystem";
const char kOpenFileSystemDetailLabel[] = "FileSystem.OpenFileSystemDetail";
const char kOpenFileSystemDetailNonThrottledLabel[] =
@@ -60,7 +57,6 @@ enum FileSystemError {
const char kTemporaryOriginsCountLabel[] = "FileSystem.TemporaryOriginsCount";
const char kPersistentOriginsCountLabel[] = "FileSystem.PersistentOriginsCount";
-const char kSyncableOriginsCountLabel[] = "FileSystem.SyncableOriginsCount";
// Restricted names.
// http://dev.w3.org/2009/dap/file-system/file-dir-sys.html#naming-restrictions
@@ -109,11 +105,8 @@ void OpenFileSystemOnFileThread(
OpenFileSystemMode mode,
base::PlatformFileError* error_ptr) {
DCHECK(error_ptr);
-
const bool create = (mode == OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT);
- base::FilePath root_path =
- file_util->GetDirectoryForOriginAndType(
- origin_url, type, create, error_ptr);
+ file_util->GetDirectoryForOriginAndType(origin_url, type, create, error_ptr);
if (*error_ptr != base::PLATFORM_FILE_OK) {
UMA_HISTOGRAM_ENUMERATION(kOpenFileSystemLabel,
kCreateDirectoryError,
@@ -179,17 +172,11 @@ void SandboxFileSystemBackend::OpenFileSystem(
enable_temporary_file_system_in_incognito_)) {
// TODO(kinuko): return an isolated temporary directory.
callback.Run(GURL(), std::string(), base::PLATFORM_FILE_ERROR_SECURITY);
- UMA_HISTOGRAM_ENUMERATION(kOpenFileSystemLabel,
- kIncognito,
- kFileSystemErrorMax);
return;
}
if (!IsAllowedScheme(origin_url)) {
callback.Run(GURL(), std::string(), base::PLATFORM_FILE_ERROR_SECURITY);
- UMA_HISTOGRAM_ENUMERATION(kOpenFileSystemLabel,
- kInvalidSchemeError,
- kFileSystemErrorMax);
return;
}
@@ -362,9 +349,6 @@ void SandboxFileSystemBackend::GetOriginsForTypeOnFileThread(
case kFileSystemTypePersistent:
UMA_HISTOGRAM_COUNTS(kPersistentOriginsCountLabel, origins->size());
break;
- case kFileSystemTypeSyncable:
- UMA_HISTOGRAM_COUNTS(kSyncableOriginsCountLabel, origins->size());
- break;
default:
break;
}