OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/drive/file_cache.h" | 5 #include "chrome/browser/chromeos/drive/file_cache.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/file_util.h" | |
11 #include "base/files/file_enumerator.h" | 10 #include "base/files/file_enumerator.h" |
| 11 #include "base/files/file_util.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/sys_info.h" | 16 #include "base/sys_info.h" |
17 #include "chrome/browser/chromeos/drive/drive.pb.h" | 17 #include "chrome/browser/chromeos/drive/drive.pb.h" |
18 #include "chrome/browser/chromeos/drive/file_system_util.h" | 18 #include "chrome/browser/chromeos/drive/file_system_util.h" |
19 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" | 19 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" |
20 #include "chrome/browser/drive/drive_api_util.h" | 20 #include "chrome/browser/drive/drive_api_util.h" |
21 #include "chromeos/chromeos_constants.h" | 21 #include "chromeos/chromeos_constants.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 base::Time::Now().ToInternalValue()); | 604 base::Time::Now().ToInternalValue()); |
605 error = storage_->PutEntry(entry); | 605 error = storage_->PutEntry(entry); |
606 if (error != FILE_ERROR_OK) { | 606 if (error != FILE_ERROR_OK) { |
607 LOG(ERROR) << "Failed to put entry: " << id << ", " | 607 LOG(ERROR) << "Failed to put entry: " << id << ", " |
608 << FileErrorToString(error); | 608 << FileErrorToString(error); |
609 } | 609 } |
610 } | 610 } |
611 | 611 |
612 } // namespace internal | 612 } // namespace internal |
613 } // namespace drive | 613 } // namespace drive |
OLD | NEW |