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

Unified Diff: components/sync/protocol/proto_value_conversions.cc

Issue 2382443006: Sync MDP: implement MemoryDumpProvider
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/protocol/proto_value_conversions.cc
diff --git a/components/sync/protocol/proto_value_conversions.cc b/components/sync/protocol/proto_value_conversions.cc
index 63850c9265313d6951836e3f0f131e76e930fa48..149b0deb2a10be1b03e1b2c5a82af7678d950c77 100644
--- a/components/sync/protocol/proto_value_conversions.cc
+++ b/components/sync/protocol/proto_value_conversions.cc
@@ -85,6 +85,20 @@ class ToValueVisitor {
}
}
+ // Customized
+ template <class P>
+ void Visit(P& proto, const char* field_name,
+ const sync_pb::EnhancedBookmarksFlags& field_value) {
+ // Obsolete, don't visit
+ }
+
+ // Customized
+ template <class P>
+ void Visit(P& proto, const char* field_name,
+ const sync_pb::WalletSyncFlags& field_value) {
+ // Obsolete, don't visit
+ }
+
template <class P>
static std::unique_ptr<base::DictionaryValue> Visit(
const P& proto,
@@ -112,7 +126,7 @@ class ToValueVisitor {
// Customized
void VisitProto(const sync_pb::PasswordSpecificsData& proto) {
VisitProtoFields(*this, proto);
- Visit(proto, "password_value", std::string("<redacted>"));
+ value_->SetString("password_value", "<redacted>");
}
// Customized
« no previous file with comments | « components/sync/protocol/proto_size_estimations_unittest.cc ('k') | components/sync/protocol/proto_visitors.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698