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

Unified Diff: chrome/browser/sync/profile_sync_service_autofill_unittest.cc

Issue 9460047: sync: remove use of protobuf extensions in protocol to reduce static init overhead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nigori access in testserver Created 8 years, 10 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: chrome/browser/sync/profile_sync_service_autofill_unittest.cc
diff --git a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
index bb872fd882f66ef3738d686557229083dc8e7c1d..0539e04e3598b15d2a5fe23ed0275a1af6ff4a12 100644
--- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
@@ -452,7 +452,7 @@ class ProfileSyncServiceAutofillTest : public AbstractProfileSyncServiceTest {
sync_pb::EntitySpecifics specifics;
AutocompleteSyncableService::WriteAutofillEntry(entry, &specifics);
sync_pb::AutofillSpecifics* autofill_specifics =
- specifics.MutableExtension(sync_pb::autofill);
+ specifics.mutable_autofill();
node.SetAutofillSpecifics(*autofill_specifics);
return true;
}
@@ -470,7 +470,7 @@ class ProfileSyncServiceAutofillTest : public AbstractProfileSyncServiceTest {
sync_pb::EntitySpecifics specifics;
AutofillProfileSyncableService::WriteAutofillProfile(profile, &specifics);
sync_pb::AutofillProfileSpecifics* profile_specifics =
- specifics.MutableExtension(sync_pb::autofill_profile);
+ specifics.mutable_autofill_profile();
node.SetAutofillProfileSpecifics(*profile_specifics);
return true;
}
@@ -663,8 +663,7 @@ class FakeServerUpdater : public base::RefCountedThreadSafe<FakeServerUpdater> {
}
sync_pb::EntitySpecifics entity_specifics;
- entity_specifics.MutableExtension(sync_pb::autofill)->
- CopyFrom(new_autofill);
+ entity_specifics.mutable_autofill()->CopyFrom(new_autofill);
{
// Tell main thread we've started

Powered by Google App Engine
This is Rietveld 408576698