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/resource_entry_conversion.h" | 5 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 #include "chrome/browser/chromeos/drive/drive.pb.h" | 11 #include "chrome/browser/chromeos/drive/drive.pb.h" |
12 #include "chrome/browser/chromeos/drive/file_system_core_util.h" | 12 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
13 #include "chrome/browser/drive/drive_api_util.h" | 13 #include "components/drive/drive_api_util.h" |
14 #include "google_apis/drive/drive_api_parser.h" | 14 #include "google_apis/drive/drive_api_parser.h" |
15 | 15 |
16 namespace drive { | 16 namespace drive { |
17 | 17 |
18 bool ConvertChangeResourceToResourceEntry( | 18 bool ConvertChangeResourceToResourceEntry( |
19 const google_apis::ChangeResource& input, | 19 const google_apis::ChangeResource& input, |
20 ResourceEntry* out_entry, | 20 ResourceEntry* out_entry, |
21 std::string* out_parent_resource_id) { | 21 std::string* out_parent_resource_id) { |
22 DCHECK(out_entry); | 22 DCHECK(out_entry); |
23 DCHECK(out_parent_resource_id); | 23 DCHECK(out_parent_resource_id); |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 file_info->is_symbolic_link = entry.file_info().is_symbolic_link(); | 132 file_info->is_symbolic_link = entry.file_info().is_symbolic_link(); |
133 file_info->last_modified = base::Time::FromInternalValue( | 133 file_info->last_modified = base::Time::FromInternalValue( |
134 entry.file_info().last_modified()); | 134 entry.file_info().last_modified()); |
135 file_info->last_accessed = base::Time::FromInternalValue( | 135 file_info->last_accessed = base::Time::FromInternalValue( |
136 entry.file_info().last_accessed()); | 136 entry.file_info().last_accessed()); |
137 file_info->creation_time = base::Time::FromInternalValue( | 137 file_info->creation_time = base::Time::FromInternalValue( |
138 entry.file_info().creation_time()); | 138 entry.file_info().creation_time()); |
139 } | 139 } |
140 | 140 |
141 } // namespace drive | 141 } // namespace drive |
OLD | NEW |