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

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

Issue 4683003: Sending the proto files for review to unblcok the server team Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 10 years, 1 month 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 6a7c862850e694cbe601acbd9fb057926d639624..455b57d7638054689acb18343ca34404f9dde485 100644
--- a/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
+++ b/chrome/browser/sync/profile_sync_service_autofill_unittest.cc
@@ -26,6 +26,7 @@
#include "chrome/browser/sync/glue/autofill_change_processor.h"
#include "chrome/browser/sync/glue/autofill_data_type_controller.h"
#include "chrome/browser/sync/glue/autofill_model_associator.h"
+#include "chrome/browser/sync/glue/autofill_model_associator2.h"
#include "chrome/browser/sync/profile_sync_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_test_util.h"
@@ -222,20 +223,20 @@ class ProfileSyncServiceAutofillTest : public AbstractProfileSyncServiceTest {
}
bool AddAutofillProfileSyncNode(const AutoFillProfile& profile) {
- sync_api::WriteTransaction trans(
+ /* sync_api::WriteTransaction trans(
service_->backend()->GetUserShareHandle());
sync_api::ReadNode autofill_root(&trans);
if (!autofill_root.InitByTagLookup(browser_sync::kAutofillTag))
return false;
sync_api::WriteNode node(&trans);
- std::string tag = AutofillModelAssociator::ProfileLabelToTag(
- profile.Label());
+ //std::string tag = AutofillModelAssociator2::ProfileLabelToTag(
+ // profile.Label());
if (!node.InitUniqueByCreation(syncable::AUTOFILL, autofill_root, tag))
return false;
AutofillChangeProcessor::WriteAutofillProfile(profile, &node);
sync_pb::AutofillSpecifics s(node.GetAutofillSpecifics());
s.mutable_profile()->set_label(UTF16ToUTF8(profile.Label()));
- node.SetAutofillSpecifics(s);
+ node.SetAutofillSpecifics(s);*/
return true;
}
« no previous file with comments | « chrome/browser/sync/profile_sync_factory_impl.cc ('k') | chrome/browser/sync/protocol/autofill_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698