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

Side by Side Diff: sync/internal_api/base_node.cc

Issue 10917246: [Sync] Add keystore encryption info to about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + address comments Created 8 years, 3 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
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 "sync/internal_api/public/base_node.h" 5 #include "sync/internal_api/public/base_node.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/sha1.h" 8 #include "base/sha1.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "sync/internal_api/public/base_transaction.h" 12 #include "sync/internal_api/public/base_transaction.h"
13 #include "sync/internal_api/public/util/time.h"
13 #include "sync/internal_api/syncapi_internal.h" 14 #include "sync/internal_api/syncapi_internal.h"
14 #include "sync/protocol/app_specifics.pb.h" 15 #include "sync/protocol/app_specifics.pb.h"
15 #include "sync/protocol/autofill_specifics.pb.h" 16 #include "sync/protocol/autofill_specifics.pb.h"
16 #include "sync/protocol/bookmark_specifics.pb.h" 17 #include "sync/protocol/bookmark_specifics.pb.h"
17 #include "sync/protocol/extension_specifics.pb.h" 18 #include "sync/protocol/extension_specifics.pb.h"
18 #include "sync/protocol/nigori_specifics.pb.h" 19 #include "sync/protocol/nigori_specifics.pb.h"
19 #include "sync/protocol/password_specifics.pb.h" 20 #include "sync/protocol/password_specifics.pb.h"
20 #include "sync/protocol/session_specifics.pb.h" 21 #include "sync/protocol/session_specifics.pb.h"
21 #include "sync/protocol/theme_specifics.pb.h" 22 #include "sync/protocol/theme_specifics.pb.h"
22 #include "sync/protocol/typed_url_specifics.pb.h" 23 #include "sync/protocol/typed_url_specifics.pb.h"
23 #include "sync/syncable/directory.h" 24 #include "sync/syncable/directory.h"
24 #include "sync/syncable/entry.h" 25 #include "sync/syncable/entry.h"
25 #include "sync/syncable/syncable_id.h" 26 #include "sync/syncable/syncable_id.h"
26 #include "sync/util/time.h"
27 27
28 using sync_pb::AutofillProfileSpecifics; 28 using sync_pb::AutofillProfileSpecifics;
29 29
30 namespace syncer { 30 namespace syncer {
31 31
32 using syncable::SPECIFICS; 32 using syncable::SPECIFICS;
33 33
34 // Helper function to look up the int64 metahandle of an object given the ID 34 // Helper function to look up the int64 metahandle of an object given the ID
35 // string. 35 // string.
36 static int64 IdToMetahandle(syncable::BaseTransaction* trans, 36 static int64 IdToMetahandle(syncable::BaseTransaction* trans,
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 const sync_pb::EntitySpecifics& specifics) { 344 const sync_pb::EntitySpecifics& specifics) {
345 ModelType type = GetModelTypeFromSpecifics(specifics); 345 ModelType type = GetModelTypeFromSpecifics(specifics);
346 DCHECK_NE(UNSPECIFIED, type); 346 DCHECK_NE(UNSPECIFIED, type);
347 if (GetModelType() != UNSPECIFIED) { 347 if (GetModelType() != UNSPECIFIED) {
348 DCHECK_EQ(GetModelType(), type); 348 DCHECK_EQ(GetModelType(), type);
349 } 349 }
350 unencrypted_data_.CopyFrom(specifics); 350 unencrypted_data_.CopyFrom(specifics);
351 } 351 }
352 352
353 } // namespace syncer 353 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698