Home
last modified time | relevance | path

Searched refs:model_associator_ (Results 1 – 25 of 54) sorted by relevance

123

/external/chromium_org/chrome/browser/sync/
Dprofile_sync_service_session_unittest.cc210 model_associator_ = in StartSyncService()
214 dtc, model_associator_, in StartSyncService()
218 model_associator_, change_processor_))); in StartSyncService()
231 SessionModelAssociator* model_associator_; member in browser_sync::ProfileSyncServiceSessionTest
274 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F()
276 std::string machine_tag = model_associator_->GetCurrentMachineTag(); in TEST_F()
277 int64 sync_id = model_associator_->GetSyncIdFromSessionTag(machine_tag); in TEST_F()
311 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F()
318 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F()
320 std::string machine_tag = model_associator_->GetCurrentMachineTag(); in TEST_F()
[all …]
/external/chromium/chrome/browser/sync/
Dprofile_sync_service_session_unittest.cc113 model_associator_ = in StartSyncService()
117 sync_service_.get(), model_associator_, in StartSyncService()
121 model_associator_, change_processor_))); in StartSyncService()
138 SessionModelAssociator* model_associator_; member in browser_sync::ProfileSyncServiceSessionTest
174 ASSERT_EQ(model_associator_->GetSessionService(), helper_.service()); in TEST_F()
178 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F()
180 std::string machine_tag = model_associator_->GetCurrentMachineTag(); in TEST_F()
181 int64 sync_id = model_associator_->GetSyncIdFromSessionTag(machine_tag); in TEST_F()
205 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F()
212 ASSERT_TRUE(model_associator_->SyncModelHasUserCreatedNodes(&has_nodes)); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/sync/glue/
Dnon_frontend_data_type_controller_unittest.cc116 model_associator_(NULL), in SyncNonFrontendDataTypeControllerTest()
145 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations()
149 model_associator_, change_processor_))); in SetStartExpectations()
153 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
155 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
157 EXPECT_CALL(*model_associator_, AssociateModels(_, _)). in SetAssociateExpectations()
170 EXPECT_CALL(*model_associator_, DisassociateModels()). in SetStopExpectations()
177 if (model_associator_) { in SetStartFailExpectations()
178 EXPECT_CALL(*model_associator_, DisassociateModels()). in SetStartFailExpectations()
217 ModelAssociatorMock* model_associator_; member in SyncNonFrontendDataTypeControllerTest
[all …]
Dfrontend_data_type_controller_unittest.cc56 model_associator_.reset(sync_components.model_associator); in CreateSyncComponents()
105 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations()
109 model_associator_, change_processor_))); in SetStartExpectations()
113 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
115 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
117 EXPECT_CALL(*model_associator_, AssociateModels(_, _)). in SetAssociateExpectations()
130 EXPECT_CALL(*model_associator_, DisassociateModels()). in SetStopExpectations()
162 ModelAssociatorMock* model_associator_; member in SyncFrontendDataTypeControllerTest
179 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in TEST_F()
181 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
[all …]
Dnon_frontend_data_type_controller.cc47 scoped_ptr<AssociatorInterface> model_associator_; member in browser_sync::NonFrontendDataTypeController::BackendComponentsContainer
63 if (model_associator_) in ~BackendComponentsContainer()
64 model_associator_->DisassociateModels(); in ~BackendComponentsContainer()
83 model_associator_.reset(sync_components.model_associator); in CreateComponents()
89 CHECK(model_associator_); in Associate()
94 if (!model_associator_->CryptoReadyIfNecessary()) { in Associate()
99 if (!model_associator_->SyncModelHasUserCreatedNodes( in Associate()
107 result.error = model_associator_->AssociateModels( in Associate()
114 result.model_associator = model_associator_.get(); in Associate()
124 model_associator_->DisassociateModels(); in Associate()
[all …]
Dbookmark_data_type_controller_unittest.cc84 model_associator_ = new ModelAssociatorMock(); in SetUp()
90 new ProfileSyncComponentsFactoryMock(model_associator_, in SetUp()
123 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
126 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
128 EXPECT_CALL(*model_associator_, AssociateModels(_, _)). in SetAssociateExpectations()
135 EXPECT_CALL(*model_associator_, DisassociateModels()). in SetStopExpectations()
156 ModelAssociatorMock* model_associator_; member in SyncBookmarkDataTypeControllerTest
222 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
245 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
257 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in TEST_F()
[all …]
Dtyped_url_change_processor.cc44 model_associator_(model_associator), in TypedUrlChangeProcessor()
85 model_associator_->GetErrorPercentage()); in Observe()
107 if (!model_associator_->FixupURLAndGetVisits(&url, &visit_vector)) { in CreateOrUpdateSyncNode()
121 if (model_associator_->ShouldIgnoreUrl(url.url())) in CreateOrUpdateSyncNode()
130 model_associator_->WriteToSyncNode(url, visit_vector, &update_node); in CreateOrUpdateSyncNode()
177 model_associator_->WriteToSyncNode(url, visit_vector, &create_node); in CreateOrUpdateSyncNode()
195 if (!model_associator_->DeleteAllNodes(&trans)) { in HandleURLsDeleted()
291 if (model_associator_->ShouldIgnoreUrl(GURL(typed_url.url()))) in ApplyChangesFromSyncModel()
295 model_associator_->FilterExpiredVisits(typed_url); in ApplyChangesFromSyncModel()
300 model_associator_->UpdateFromSyncDB( in ApplyChangesFromSyncModel()
[all …]
Dpassword_change_processor.cc36 model_associator_(model_associator), in PasswordChangeProcessor()
88 model_associator_->Associate(&tag, sync_node.GetId()); in Observe()
101 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in Observe()
121 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in Observe()
142 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in Observe()
156 model_associator_->Disassociate(sync_node.GetId()); in Observe()
198 model_associator_->Disassociate(it->id); in ApplyChangesFromSyncModel()
220 model_associator_->Associate(&tag, sync_node.GetId()); in ApplyChangesFromSyncModel()
237 syncer::SyncError error = model_associator_->WriteToPasswordStore( in CommitChangesFromSyncModel()
Dbookmark_change_processor.cc51 model_associator_(model_associator) { in BookmarkChangeProcessor()
109 model_associator_->Disassociate(sync_node->GetId()); in RemoveOneSyncNode()
120 if (!model_associator_->InitSyncNodeFromChromeId(topmost->id(), in RemoveSyncNodeHierarchy()
147 if (model_associator_->GetSyncIdFromChromeId(mobile_bookmark_id) != in RemoveAllSyncNodes()
161 if (!model_associator_->InitSyncNodeFromChromeId(topmost_node_id, in RemoveAllChildNodes()
229 model_associator_, error_handler()); in BookmarkNodeAdded()
296 if (!model_associator_->InitSyncNodeFromChromeId(node->id(), &sync_node)) { in BookmarkNodeChanged()
298 if (model_associator_->GetSyncIdFromChromeId(node->id()) == in BookmarkNodeChanged()
351 DCHECK_EQ(model_associator_->GetChromeNodeFromSyncId( in BookmarkNodeChanged()
383 if (!model_associator_->InitSyncNodeFromChromeId(child->id(), &sync_node)) { in BookmarkNodeMoved()
[all …]
/external/chromium/chrome/browser/sync/glue/
Dautofill_data_type_controller_unittest.cc115 model_associator_ = new ModelAssociatorMock(); in SetAssociateExpectations()
120 ProfileSyncFactory::SyncComponents(model_associator_, in SetAssociateExpectations()
122 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
124 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
126 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations()
134 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations()
156 ModelAssociatorMock* model_associator_; member in __anone536bb860111::AutofillDataTypeControllerTest
210 model_associator_ = new ModelAssociatorMock(); in TEST_F()
215 ProfileSyncFactory::SyncComponents(model_associator_, in TEST_F()
226 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in TEST_F()
[all …]
Dtheme_data_type_controller_unittest.cc49 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations()
52 WillOnce(Return(ProfileSyncFactory::SyncComponents(model_associator_, in SetStartExpectations()
57 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
59 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
61 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations()
71 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations()
80 ModelAssociatorMock* model_associator_; member in ThemeDataTypeControllerTest
99 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
109 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
119 EXPECT_CALL(*model_associator_, AssociateModels()). in TEST_F()
[all …]
Dextension_data_type_controller_unittest.cc49 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations()
53 ProfileSyncFactory::SyncComponents(model_associator_, in SetStartExpectations()
58 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
60 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
62 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations()
72 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations()
81 ModelAssociatorMock* model_associator_; member in ExtensionDataTypeControllerTest
100 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
110 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
120 EXPECT_CALL(*model_associator_, AssociateModels()). in TEST_F()
[all …]
Dpreference_data_type_controller_unittest.cc51 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations()
54 WillOnce(Return(ProfileSyncFactory::SyncComponents(model_associator_, in SetStartExpectations()
59 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
61 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
63 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations()
73 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations()
82 ModelAssociatorMock* model_associator_; member in PreferenceDataTypeControllerTest
101 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
111 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
121 EXPECT_CALL(*model_associator_, AssociateModels()). in TEST_F()
[all …]
Dfrontend_data_type_controller_unittest.cc57 model_associator_.reset(sync_components.model_associator); in CreateSyncComponents()
102 model_associator_ = new ModelAssociatorMock(); in SetStartExpectations()
105 WillOnce(Return(ProfileSyncFactory::SyncComponents(model_associator_, in SetStartExpectations()
110 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
112 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
114 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations()
127 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations()
143 ModelAssociatorMock* model_associator_; member in FrontendDataTypeControllerTest
159 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in TEST_F()
161 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
[all …]
Dbookmark_data_type_controller_unittest.cc53 model_associator_ = new ModelAssociatorMock(); in SetUp()
56 new ProfileSyncFactoryMock(model_associator_, in SetUp()
72 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in SetAssociateExpectations()
75 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in SetAssociateExpectations()
77 EXPECT_CALL(*model_associator_, AssociateModels()). in SetAssociateExpectations()
84 EXPECT_CALL(*model_associator_, DisassociateModels()); in SetStopExpectations()
94 ModelAssociatorMock* model_associator_; member in BookmarkDataTypeControllerTest
130 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
148 EXPECT_CALL(*model_associator_, SyncModelHasUserCreatedNodes(_)). in TEST_F()
159 EXPECT_CALL(*model_associator_, CryptoReadyIfNecessary()). in TEST_F()
[all …]
Dpassword_data_type_controller.cc81 if (model_associator_.get()) in Stop()
82 model_associator_->AbortAssociation(); in Stop()
142 model_associator_.reset(sync_components.model_associator); in StartImpl()
146 if (!model_associator_->CryptoReadyIfNecessary()) { in StartImpl()
152 if (!model_associator_->SyncModelHasUserCreatedNodes(&sync_has_nodes)) { in StartImpl()
158 bool merge_success = model_associator_->AssociateModels(); in StartImpl()
195 if (model_associator_ != NULL) in StopImpl()
196 model_associator_->DisassociateModels(); in StopImpl()
199 model_associator_.reset(); in StopImpl()
206 model_associator_.reset(); in StartFailed()
Dpreference_change_processor.cc30 model_associator_(model_associator), in PreferenceChangeProcessor()
58 int64 sync_id = model_associator_->GetSyncIdFromChromeId(*name); in Observe()
62 model_associator_->Disassociate(sync_id); in Observe()
83 if (!model_associator_->InitPrefNodeAndAssociate(&trans, in Observe()
149 if (model_associator_->synced_preferences().count(pref_name) == 0) in ApplyChangesFromSyncModel()
170 model_associator_->Associate(preference, changes[i].id); in ApplyChangesFromSyncModel()
173 model_associator_->AfterUpdateOperations(name); in ApplyChangesFromSyncModel()
213 model_associator_->synced_preferences().begin(); in StartObserving()
214 it != model_associator_->synced_preferences().end(); ++it) { in StartObserving()
222 model_associator_->synced_preferences().begin(); in StopObserving()
[all …]
Dtyped_url_data_type_controller.cc123 if (model_associator_.get()) in Stop()
124 model_associator_->AbortAssociation(); in Stop()
184 model_associator_.reset(sync_components.model_associator); in StartImpl()
188 if (!model_associator_->CryptoReadyIfNecessary()) { in StartImpl()
194 if (!model_associator_->SyncModelHasUserCreatedNodes(&sync_has_nodes)) { in StartImpl()
200 bool merge_success = model_associator_->AssociateModels(); in StartImpl()
248 if (model_associator_ != NULL) in StopImpl()
249 model_associator_->DisassociateModels(); in StopImpl()
252 model_associator_.reset(); in StopImpl()
259 model_associator_.reset(); in StartFailed()
Dfrontend_data_type_controller.cc81 if (!model_associator_->CryptoReadyIfNecessary()) { in Associate()
87 if (!model_associator_->SyncModelHasUserCreatedNodes(&sync_has_nodes)) { in Associate()
93 bool merge_success = model_associator_->AssociateModels(); in Associate()
119 if (model_associator_ != NULL) in Stop()
120 model_associator_->DisassociateModels(); in Stop()
123 model_associator_.reset(); in Stop()
164 model_associator_.reset(); in StartFailed()
Dbookmark_change_processor.cc28 model_associator_(model_associator) { in BookmarkChangeProcessor()
47 model_associator_ = NULL; in StopImpl()
82 if (!model_associator_->InitSyncNodeFromChromeId(node->id(), &sync_node)) { in RemoveOneSyncNode()
89 model_associator_->Disassociate(sync_node.GetId()); in RemoveOneSyncNode()
150 CreateSyncNode(parent, model, index, &trans, model_associator_, in BookmarkNodeAdded()
204 if (!model_associator_->InitSyncNodeFromChromeId(node->id(), &sync_node)) { in BookmarkNodeChanged()
212 DCHECK_EQ(model_associator_->GetChromeNodeFromSyncId( in BookmarkNodeChanged()
238 if (!model_associator_->InitSyncNodeFromChromeId(child->id(), &sync_node)) { in BookmarkNodeMoved()
244 model_associator_)) { in BookmarkNodeMoved()
266 if (!model_associator_->InitSyncNodeFromChromeId(node->GetChild(i)->id(), in BookmarkNodeChildrenReordered()
[all …]
Dautofill_data_type_controller.cc125 if (model_associator_.get()) in Stop()
126 model_associator_->AbortAssociation(); in Stop()
217 model_associator_.reset(sync_components.model_associator); in StartImpl()
221 if (!model_associator_->CryptoReadyIfNecessary()) { in StartImpl()
227 if (!model_associator_->SyncModelHasUserCreatedNodes(&sync_has_nodes)) { in StartImpl()
233 bool merge_success = model_associator_->AssociateModels(); in StartImpl()
288 if (model_associator_ != NULL) in StopImpl()
289 model_associator_->DisassociateModels(); in StopImpl()
292 model_associator_.reset(); in StopImpl()
300 model_associator_.reset(); in StartFailed()
Dpassword_change_processor.cc29 model_associator_(model_associator), in PasswordChangeProcessor()
83 model_associator_->Associate(&tag, sync_node.GetId()); in Observe()
88 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in Observe()
106 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in Observe()
117 model_associator_->Disassociate(sync_node.GetId()); in Observe()
156 model_associator_->Disassociate(changes[i].id); in ApplyChangesFromSyncModel()
178 model_associator_->Associate(&tag, sync_node.GetId()); in ApplyChangesFromSyncModel()
194 if (!model_associator_->WriteToPasswordStore(&new_passwords_, in CommitChangesFromSyncModel()
Dautofill_change_processor.cc43 model_associator_(model_associator), in AutofillChangeProcessor()
124 model_associator_->Associate(&tag, sync_node.GetId()); in ObserveAutofillEntriesChanged()
133 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in ObserveAutofillEntriesChanged()
174 int64 sync_id = model_associator_->GetSyncIdFromChromeId(tag); in RemoveSyncNode()
187 model_associator_->Disassociate(sync_node.GetId()); in RemoveSyncNode()
333 model_associator_->Associate(&tag, sync_id); in ApplySyncAutofillEntryChange()
357 model_associator_->Associate(&guid, sync_id); in ApplySyncAutofillProfileChange()
361 const std::string* guid = model_associator_->GetChromeNodeFromSyncId( in ApplySyncAutofillProfileChange()
394 const std::string *guid = model_associator_->GetChromeNodeFromSyncId(sync_id); in ApplySyncAutofillProfileDelete()
405 model_associator_->Disassociate(sync_id); in ApplySyncAutofillProfileDelete()
[all …]
Dautofill_profile_change_processor.cc34 model_associator_(model_associator), in AutofillProfileChangeProcessor()
137 int64 sync_id = model_associator_->GetSyncIdFromChromeId(change->key()); in ActOnChange()
152 int64 sync_id = model_associator_->GetSyncIdFromChromeId(change->key()); in ActOnChange()
163 model_associator_->Disassociate(sync_id); in ActOnChange()
231 model_associator_->Associate(&guid, sync_id); in ApplyAutofillProfileChange()
265 int64 sync_id = model_associator_->GetSyncIdFromChromeId(guid); in RemoveSyncNode()
276 model_associator_->Disassociate(sync_id); in RemoveSyncNode()
304 model_associator_->Associate(&guid, node.GetId()); in AddAutofillProfileSyncNode()
Dtyped_url_change_processor.cc25 model_associator_(model_associator), in TypedUrlChangeProcessor()
109 model_associator_->WriteToSyncNode(*url, visits, &update_node); in HandleURLsModified()
120 model_associator_->WriteToSyncNode(*url, visits, &create_node); in HandleURLsModified()
122 model_associator_->Associate(&tag, create_node.GetId()); in HandleURLsModified()
132 if (!model_associator_->DeleteAllNodes(&trans)) { in HandleURLsDeleted()
141 model_associator_->GetSyncIdFromChromeId(url->spec()); in HandleURLsDeleted()
148 model_associator_->Disassociate(sync_node.GetId()); in HandleURLsDeleted()
305 if (!model_associator_->WriteToHistoryBackend(&titles, &new_urls, in ApplyChangesFromSyncModel()

123