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

Side by Side Diff: components/sync/protocol/proto_value_conversions.cc

Issue 2278333002: Supplimentary identifier for passwords specific (Closed)
Patch Set: Supplimentary identifier for passwords specific. Created 4 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
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 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "components/sync/protocol/proto_value_conversions.h" 7 #include "components/sync/protocol/proto_value_conversions.h"
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 std::unique_ptr<base::DictionaryValue> EncryptedDataToValue( 130 std::unique_ptr<base::DictionaryValue> EncryptedDataToValue(
131 const sync_pb::EncryptedData& proto) { 131 const sync_pb::EncryptedData& proto) {
132 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); 132 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
133 SET_STR(key_name); 133 SET_STR(key_name);
134 // TODO(akalin): Shouldn't blob be of type bytes instead of string? 134 // TODO(akalin): Shouldn't blob be of type bytes instead of string?
135 SET_BYTES(blob); 135 SET_BYTES(blob);
136 return value; 136 return value;
137 } 137 }
138 138
139 std::unique_ptr<base::DictionaryValue> PasswordSpecificsMetadataToValue(
140 const sync_pb::PasswordSpecificsMetadata& proto) {
141 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
142 SET_STR(url);
143 return value;
144 }
145
139 std::unique_ptr<base::DictionaryValue> AppSettingsToValue( 146 std::unique_ptr<base::DictionaryValue> AppSettingsToValue(
140 const sync_pb::AppNotificationSettings& proto) { 147 const sync_pb::AppNotificationSettings& proto) {
141 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); 148 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
142 SET_BOOL(initial_setup_done); 149 SET_BOOL(initial_setup_done);
143 SET_BOOL(disabled); 150 SET_BOOL(disabled);
144 SET_STR(oauth_client_id); 151 SET_STR(oauth_client_id);
145 return value; 152 return value;
146 } 153 }
147 154
148 std::unique_ptr<base::DictionaryValue> SessionHeaderToValue( 155 std::unique_ptr<base::DictionaryValue> SessionHeaderToValue(
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 SET_STR(entry_id); 607 SET_STR(entry_id);
601 SET_STR(title); 608 SET_STR(title);
602 SET_REP(pages, ArticlePageToValue); 609 SET_REP(pages, ArticlePageToValue);
603 return value; 610 return value;
604 } 611 }
605 612
606 std::unique_ptr<base::DictionaryValue> PasswordSpecificsToValue( 613 std::unique_ptr<base::DictionaryValue> PasswordSpecificsToValue(
607 const sync_pb::PasswordSpecifics& proto) { 614 const sync_pb::PasswordSpecifics& proto) {
608 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); 615 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
609 SET(encrypted, EncryptedDataToValue); 616 SET(encrypted, EncryptedDataToValue);
617 SET(unencrypted_metadata, PasswordSpecificsMetadataToValue);
610 return value; 618 return value;
611 } 619 }
612 620
613 std::unique_ptr<base::DictionaryValue> PreferenceSpecificsToValue( 621 std::unique_ptr<base::DictionaryValue> PreferenceSpecificsToValue(
614 const sync_pb::PreferenceSpecifics& proto) { 622 const sync_pb::PreferenceSpecifics& proto) {
615 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); 623 std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
616 SET_STR(name); 624 SET_STR(name);
617 SET_STR(value); 625 SET_STR(value);
618 return value; 626 return value;
619 } 627 }
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 #undef SET_BYTES 1098 #undef SET_BYTES
1091 #undef SET_INT32 1099 #undef SET_INT32
1092 #undef SET_INT64 1100 #undef SET_INT64
1093 #undef SET_INT64_REP 1101 #undef SET_INT64_REP
1094 #undef SET_STR 1102 #undef SET_STR
1095 #undef SET_STR_REP 1103 #undef SET_STR_REP
1096 1104
1097 #undef SET_FIELD 1105 #undef SET_FIELD
1098 1106
1099 } // namespace syncer 1107 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/protocol/password_specifics.proto ('k') | components/sync/syncable/nigori_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698