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

Side by Side Diff: chrome/browser/chromeos/drive/file_cache.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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 (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/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback_helpers.h" 11 #include "base/callback_helpers.h"
12 #include "base/files/file_enumerator.h" 12 #include "base/files/file_enumerator.h"
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/metrics/histogram.h" 16 #include "base/metrics/histogram.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "base/sys_info.h" 19 #include "base/sys_info.h"
20 #include "chrome/browser/chromeos/drive/drive.pb.h" 20 #include "chrome/browser/chromeos/drive/drive.pb.h"
21 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 21 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
22 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" 22 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h"
23 #include "chrome/browser/drive/drive_api_util.h"
24 #include "chromeos/chromeos_constants.h" 23 #include "chromeos/chromeos_constants.h"
24 #include "components/drive/drive_api_util.h"
25 #include "google_apis/drive/task_util.h" 25 #include "google_apis/drive/task_util.h"
26 #include "net/base/filename_util.h" 26 #include "net/base/filename_util.h"
27 #include "net/base/mime_sniffer.h" 27 #include "net/base/mime_sniffer.h"
28 #include "net/base/mime_util.h" 28 #include "net/base/mime_util.h"
29 #include "third_party/cros_system_api/constants/cryptohome.h" 29 #include "third_party/cros_system_api/constants/cryptohome.h"
30 30
31 namespace drive { 31 namespace drive {
32 namespace internal { 32 namespace internal {
33 namespace { 33 namespace {
34 34
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 base::Time::Now().ToInternalValue()); 608 base::Time::Now().ToInternalValue());
609 error = storage_->PutEntry(entry); 609 error = storage_->PutEntry(entry);
610 if (error != FILE_ERROR_OK) { 610 if (error != FILE_ERROR_OK) {
611 LOG(ERROR) << "Failed to put entry: " << id << ", " 611 LOG(ERROR) << "Failed to put entry: " << id << ", "
612 << FileErrorToString(error); 612 << FileErrorToString(error);
613 } 613 }
614 } 614 }
615 615
616 } // namespace internal 616 } // namespace internal
617 } // namespace drive 617 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698