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

Side by Side Diff: sync/internal_api/public/base/attachment_id_proto.cc

Issue 264793007: Keep track of which attachments are referenced by which sync entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory leak. Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "sync/internal_api/public/base/attachment_id_proto.h"
6
7 #include "base/rand_util.h"
8
9 namespace syncer {
10
11 sync_pb::AttachmentIdProto CreateAttachmentIdProto() {
12 // Only requirement here is that this id must be globally unique.
13 // TODO(maniscalco): Consider making this base64 encoded.
14 sync_pb::AttachmentIdProto proto;
15 proto.set_unique_id(base::RandBytesAsString(16));
16 return proto;
17 }
18
19 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/internal_api/public/base/attachment_id_proto.h ('k') | sync/internal_api/public/base_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698