| OLD | NEW | 
|   1 // Copyright 2014 The Chromium Authors. All rights reserved. |   1 // Copyright 2014 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 "sync/internal_api/public/base/attachment_id_proto.h" |   5 #include "components/sync/base/attachment_id_proto.h" | 
|   6  |   6  | 
|   7 #include <stddef.h> |   7 #include <stddef.h> | 
|   8 #include <stdint.h> |   8 #include <stdint.h> | 
|   9  |   9  | 
|  10 #include <string> |  10 #include <string> | 
|  11  |  11  | 
|  12 #include "base/guid.h" |  12 #include "base/guid.h" | 
|  13 #include "base/logging.h" |  13 #include "base/logging.h" | 
|  14 #include "base/strings/string_util.h" |  14 #include "base/strings/string_util.h" | 
|  15  |  15  | 
| (...skipping 17 matching lines...) Expand all  Loading... | 
|  33   sync_pb::AttachmentMetadata result; |  33   sync_pb::AttachmentMetadata result; | 
|  34   for (int i = 0; i < ids.size(); ++i) { |  34   for (int i = 0; i < ids.size(); ++i) { | 
|  35     sync_pb::AttachmentMetadataRecord* record = result.add_record(); |  35     sync_pb::AttachmentMetadataRecord* record = result.add_record(); | 
|  36     *record->mutable_id() = ids.Get(i); |  36     *record->mutable_id() = ids.Get(i); | 
|  37     record->set_is_on_server(true); |  37     record->set_is_on_server(true); | 
|  38   } |  38   } | 
|  39   return result; |  39   return result; | 
|  40 } |  40 } | 
|  41  |  41  | 
|  42 }  // namespace syncer |  42 }  // namespace syncer | 
| OLD | NEW |