Home
last modified time | relevance | path

Searched refs:sync_data (Results 1 – 25 of 76) sorted by relevance

1234

/external/chromium_org/chrome/browser/sessions/
Dsession_types.cc25 void SessionTab::SetFromSyncData(const sync_pb::SessionTab& sync_data, in SetFromSyncData() argument
27 window_id.set_id(sync_data.window_id()); in SetFromSyncData()
28 tab_id.set_id(sync_data.tab_id()); in SetFromSyncData()
29 tab_visual_index = sync_data.tab_visual_index(); in SetFromSyncData()
30 current_navigation_index = sync_data.current_navigation_index(); in SetFromSyncData()
31 pinned = sync_data.pinned(); in SetFromSyncData()
32 extension_app_id = sync_data.extension_app_id(); in SetFromSyncData()
36 for (int i = 0; i < sync_data.navigation_size(); ++i) { in SetFromSyncData()
38 SerializedNavigationEntry::FromSyncData(i, sync_data.navigation(i))); in SetFromSyncData()
44 sync_pb::SessionTab sync_data; in ToSyncData() local
[all …]
Dsession_types_unittest.cc46 sync_pb::SessionTab sync_data; in TEST() local
47 sync_data.set_tab_id(5); in TEST()
48 sync_data.set_window_id(10); in TEST()
49 sync_data.set_tab_visual_index(13); in TEST()
50 sync_data.set_current_navigation_index(3); in TEST()
51 sync_data.set_pinned(true); in TEST()
52 sync_data.set_extension_app_id("app_id"); in TEST()
54 sync_pb::TabNavigation* navigation = sync_data.add_navigation(); in TEST()
73 tab.SetFromSyncData(sync_data, base::Time::FromInternalValue(5u)); in TEST()
112 const sync_pb::SessionTab& sync_data = tab.ToSyncData(); in TEST() local
[all …]
Dsession_restore_browsertest.cc487 sync_pb::SessionTab sync_data; in IN_PROC_BROWSER_TEST_F() local
488 sync_data.set_tab_visual_index(0); in IN_PROC_BROWSER_TEST_F()
489 sync_data.set_current_navigation_index(1); in IN_PROC_BROWSER_TEST_F()
490 sync_data.set_pinned(false); in IN_PROC_BROWSER_TEST_F()
491 sync_data.add_navigation()->CopyFrom(nav1.ToSyncData()); in IN_PROC_BROWSER_TEST_F()
492 sync_data.add_navigation()->CopyFrom(nav2.ToSyncData()); in IN_PROC_BROWSER_TEST_F()
495 tab.SetFromSyncData(sync_data, base::Time::Now()); in IN_PROC_BROWSER_TEST_F()
577 sync_pb::SessionTab sync_data; in IN_PROC_BROWSER_TEST_F() local
578 sync_data.set_tab_visual_index(0); in IN_PROC_BROWSER_TEST_F()
579 sync_data.set_current_navigation_index(0); in IN_PROC_BROWSER_TEST_F()
[all …]
/external/chromium_org/components/sessions/
Dserialized_navigation_entry.cc64 const sync_pb::TabNavigation& sync_data) { in FromSyncData() argument
67 navigation.unique_id_ = sync_data.unique_id(); in FromSyncData()
69 content::Referrer(GURL(sync_data.referrer()), in FromSyncData()
71 navigation.virtual_url_ = GURL(sync_data.virtual_url()); in FromSyncData()
72 navigation.title_ = UTF8ToUTF16(sync_data.title()); in FromSyncData()
74 content::PageState::CreateFromEncodedData(sync_data.state()); in FromSyncData()
77 if (sync_data.has_page_transition()) { in FromSyncData()
78 switch (sync_data.page_transition()) { in FromSyncData()
119 if (sync_data.has_redirect_type()) { in FromSyncData()
120 switch (sync_data.redirect_type()) { in FromSyncData()
[all …]
Dserialized_navigation_entry_unittest.cc78 sync_pb::TabNavigation sync_data; in MakeSyncDataForTest() local
79 sync_data.set_virtual_url(kVirtualURL.spec()); in MakeSyncDataForTest()
80 sync_data.set_referrer(kReferrer.url.spec()); in MakeSyncDataForTest()
81 sync_data.set_title(UTF16ToUTF8(kTitle)); in MakeSyncDataForTest()
82 sync_data.set_state(kPageState.ToEncodedData()); in MakeSyncDataForTest()
83 sync_data.set_page_transition( in MakeSyncDataForTest()
85 sync_data.set_unique_id(kUniqueID); in MakeSyncDataForTest()
86 sync_data.set_timestamp_msec(syncer::TimeToProtoTime(kTimestamp)); in MakeSyncDataForTest()
87 sync_data.set_redirect_type(sync_pb::SyncEnums::CLIENT_REDIRECT); in MakeSyncDataForTest()
88 sync_data.set_navigation_home_page(true); in MakeSyncDataForTest()
[all …]
/external/chromium_org/sync/api/
Dsync_change_unittest.cc33 EXPECT_EQ(tag, e.sync_data().GetTag()); in TEST_F()
34 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); in TEST_F()
48 EXPECT_EQ(tag, e.sync_data().GetTag()); in TEST_F()
49 EXPECT_EQ(title, e.sync_data().GetTitle()); in TEST_F()
50 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); in TEST_F()
53 e.sync_data().GetSpecifics())); in TEST_F()
68 EXPECT_EQ(tag, e.sync_data().GetTag()); in TEST_F()
69 EXPECT_EQ(title, e.sync_data().GetTitle()); in TEST_F()
70 EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType()); in TEST_F()
73 e.sync_data().GetSpecifics())); in TEST_F()
[all …]
Dsync_change.cc17 const SyncData& sync_data) in SyncChange() argument
20 sync_data_(sync_data) { in SyncChange()
51 SyncData SyncChange::sync_data() const { in sync_data() function in syncer::SyncChange
Dsync_change.h38 const SyncData& sync_data);
53 SyncData sync_data() const;
/external/chromium_org/chrome/browser/managed_mode/
Dmanaged_user_settings_service_unittest.cc123 void VerifySyncDataItem(syncer::SyncData sync_data) { in VerifySyncDataItem() argument
125 sync_data.GetSpecifics().managed_user_setting(); in VerifySyncDataItem()
259 VerifySyncDataItem(it->sync_data()); in TEST_F()
263 syncer::SyncDataList sync_data = in TEST_F() local
265 EXPECT_EQ(3u, sync_data.size()); in TEST_F()
266 for (syncer::SyncDataList::const_iterator it = sync_data.begin(); in TEST_F()
267 it != sync_data.end(); ++it) { in TEST_F()
277 VerifySyncDataItem(change.sync_data()); in TEST_F()
279 sync_data = settings_service_.GetAllSyncData(syncer::MANAGED_USER_SETTINGS); in TEST_F()
280 EXPECT_EQ(4u, sync_data.size()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/extensions/
Dapp_sync_data_unittest.cc45 syncer::SyncData sync_data = in TEST_F() local
48 AppSyncData app_sync_data(sync_data); in TEST_F()
67 syncer::SyncData sync_data = in TEST_F() local
69 AppSyncData app_sync_data(sync_data); in TEST_F()
72 EXPECT_TRUE(sync_data.GetSpecifics().has_app()); in TEST_F()
89 syncer::SyncData sync_data = in TEST_F() local
93 AppSyncData app_sync_data(sync_data); in TEST_F()
Dapp_sync_data.cc16 AppSyncData::AppSyncData(const syncer::SyncData& sync_data) { in AppSyncData() argument
17 PopulateFromSyncData(sync_data); in AppSyncData()
21 PopulateFromSyncData(sync_change.sync_data()); in AppSyncData()
72 void AppSyncData::PopulateFromSyncData(const syncer::SyncData& sync_data) { in PopulateFromSyncData() argument
73 PopulateFromAppSpecifics(sync_data.GetSpecifics().app()); in PopulateFromSyncData()
Dapp_sync_bundle.cc49 AppSyncData sync_data = extension_sync_service_->GetAppSyncData(*extension); in CreateSyncChangeToDelete() local
50 return sync_data.GetSyncChange(syncer::SyncChange::ACTION_DELETE); in CreateSyncChangeToDelete()
61 const syncer::SyncData& sync_data) { in CreateSyncChange() argument
62 if (HasExtensionId(sync_data.GetTag())) { in CreateSyncChange()
65 sync_data); in CreateSyncChange()
67 AddApp(sync_data.GetTag()); in CreateSyncChange()
70 sync_data); in CreateSyncChange()
Dextension_sync_bundle.cc48 extensions::ExtensionSyncData sync_data = in CreateSyncChangeToDelete() local
50 return sync_data.GetSyncChange(syncer::SyncChange::ACTION_DELETE); in CreateSyncChangeToDelete()
61 const syncer::SyncData& sync_data) { in CreateSyncChange() argument
62 if (HasExtensionId(sync_data.GetTag())) { in CreateSyncChange()
65 sync_data); in CreateSyncChange()
67 AddExtension(sync_data.GetTag()); in CreateSyncChange()
70 sync_data); in CreateSyncChange()
Dextension_sync_data.cc24 ExtensionSyncData::ExtensionSyncData(const syncer::SyncData& sync_data) in ExtensionSyncData() argument
28 PopulateFromSyncData(sync_data); in ExtensionSyncData()
36 PopulateFromSyncData(sync_change.sync_data()); in ExtensionSyncData()
105 const syncer::SyncData& sync_data) { in PopulateFromSyncData() argument
106 const sync_pb::EntitySpecifics& entity_specifics = sync_data.GetSpecifics(); in PopulateFromSyncData()
Dextension_sync_data_unittest.cc35 syncer::SyncData sync_data = in TEST_F() local
38 extensions::ExtensionSyncData extension_sync_data(sync_data); in TEST_F()
60 syncer::SyncData sync_data = in TEST_F() local
62 extensions::ExtensionSyncData extension_sync_data(sync_data); in TEST_F()
/external/chromium_org/chrome/browser/notifications/sync_notifier/
Dchrome_notifier_service.cc79 const syncer::SyncData& sync_data = *it; in MergeDataAndStartSyncing() local
80 DCHECK_EQ(syncer::SYNCED_NOTIFICATIONS, sync_data.GetDataType()); in MergeDataAndStartSyncing()
84 sync_data)); in MergeDataAndStartSyncing()
122 syncer::SyncData sync_data = CreateSyncDataFromNotification(*found); in MergeDataAndStartSyncing() local
126 sync_data)); in MergeDataAndStartSyncing()
135 found->Update(sync_data); in MergeDataAndStartSyncing()
168 syncer::SyncDataList sync_data; in GetAllSyncData() local
174 sync_data.push_back(CreateSyncDataFromNotification(**it)); in GetAllSyncData()
177 return sync_data; in GetAllSyncData()
189 syncer::SyncData sync_data = it->sync_data(); in ProcessSyncChanges() local
[all …]
/external/chromium_org/chrome/browser/prefs/
Dpref_model_associator.cc145 syncer::SyncData sync_data; in InitPrefAndAssociate() local
146 if (!CreatePrefSyncData(pref_name, *new_value, &sync_data)) { in InitPrefAndAssociate()
165 (*migrated_preference_list)[pref_name] = sync_data; in InitPrefAndAssociate()
171 sync_data)); in InitPrefAndAssociate()
185 sync_data)); in InitPrefAndAssociate()
198 syncer::SyncData sync_data; in InitPrefAndAssociate() local
199 if (!CreatePrefSyncData(pref_name, *user_pref_value, &sync_data)) { in InitPrefAndAssociate()
206 sync_data)); in InitPrefAndAssociate()
337 syncer::SyncData* sync_data) const { in CreatePrefSyncData()
358 *sync_data = syncer::SyncData::CreateLocalData(name, name, specifics); in CreatePrefSyncData()
[all …]
/external/chromium_org/chrome/browser/themes/
Dtheme_syncable_service.cc93 for (syncer::SyncDataList::const_reverse_iterator sync_data = in MergeDataAndStartSyncing() local
94 initial_sync_data.rbegin(); sync_data != initial_sync_data.rend(); in MergeDataAndStartSyncing()
95 ++sync_data) { in MergeDataAndStartSyncing()
96 if (sync_data->GetSpecifics().has_theme()) { in MergeDataAndStartSyncing()
97 MaybeSetTheme(current_specifics, *sync_data); in MergeDataAndStartSyncing()
175 if (theme_change->sync_data().GetSpecifics().has_theme() && in ProcessSyncChanges()
178 MaybeSetTheme(current_specifics, theme_change->sync_data()); in ProcessSyncChanges()
191 const syncer::SyncData& sync_data) { in MaybeSetTheme() argument
192 const sync_pb::ThemeSpecifics& sync_theme = sync_data.GetSpecifics().theme(); in MaybeSetTheme()
194 DVLOG(1) << "Set current theme from specifics: " << sync_data.ToString(); in MaybeSetTheme()
/external/chromium_org/chrome/browser/extensions/api/storage/
Dsetting_sync_data.cc18 Init(sync_change.change_type(), sync_change.sync_data()); in SettingSyncData()
22 const syncer::SyncData& sync_data) { in SettingSyncData() argument
23 Init(syncer::SyncChange::ACTION_INVALID, sync_data); in SettingSyncData()
28 const syncer::SyncData& sync_data) { in Init() argument
30 sync_pb::EntitySpecifics specifics = sync_data.GetSpecifics(); in Init()
Dsettings_sync_unittest.cc102 change_list[0].sync_data().GetDataType()); in ProcessSyncChanges()
267 SettingSyncData sync_data(*it); in GetAllSyncData() local
268 as_map[sync_data.extension_id()].push_back(sync_data); in GetAllSyncData()
336 syncer::SyncDataList sync_data; in TEST_F() local
337 sync_data.push_back(settings_sync_util::CreateData( in TEST_F()
339 sync_data.push_back(settings_sync_util::CreateData( in TEST_F()
343 model_type, sync_data, in TEST_F()
412 syncer::SyncDataList sync_data; in TEST_F() local
413 sync_data.push_back(settings_sync_util::CreateData( in TEST_F()
415 sync_data.push_back(settings_sync_util::CreateData( in TEST_F()
[all …]
Dsettings_backend.cc50 const base::DictionaryValue& sync_data) const { in GetOrCreateStorageWithSyncData()
75 sync_data, in GetOrCreateStorageWithSyncData()
191 linked_ptr<base::DictionaryValue> sync_data = in MergeDataAndStartSyncing() local
193 if (!sync_data.get()) { in MergeDataAndStartSyncing()
194 sync_data = linked_ptr<base::DictionaryValue>( in MergeDataAndStartSyncing()
196 grouped_sync_data[data.extension_id()] = sync_data; in MergeDataAndStartSyncing()
198 DCHECK(!sync_data->HasKey(data.key())) << in MergeDataAndStartSyncing()
200 sync_data->SetWithoutPathExpansion(data.key(), data.value().DeepCopy()); in MergeDataAndStartSyncing()
/external/chromium_org/chrome/browser/sync/glue/
Dgeneric_change_processor.cc121 syncer::ModelType type = syncer_changes_[0].sync_data().GetDataType(); in CommitChangesFromSyncModel()
270 if (change.sync_data().IsLocal()) { in AttemptDelete()
271 const std::string& tag = change.sync_data().GetTag(); in AttemptDelete()
286 node->InitByClientTagLookup(change.sync_data().GetDataType(), tag); in AttemptDelete()
296 node->InitByIdLookup(change.sync_data().GetRemoteId()); in AttemptDelete()
328 DCHECK_NE(change.sync_data().GetDataType(), syncer::UNSPECIFIED); in ProcessSyncChanges()
329 syncer::ModelType type = change.sync_data().GetDataType(); in ProcessSyncChanges()
349 syncer::ModelTypeToRootTag(change.sync_data().GetDataType())) != in ProcessSyncChanges()
363 sync_node.InitUniqueByCreation(change.sync_data().GetDataType(), in ProcessSyncChanges()
365 change.sync_data().GetTag()); in ProcessSyncChanges()
[all …]
/external/chromium/chrome/browser/sync/glue/
Dextension_util.cc187 ExtensionSyncData* sync_data) { in GetExtensionSyncData() argument
204 sync_data->id = specifics.id(); in GetExtensionSyncData()
205 sync_data->update_url = update_url; in GetExtensionSyncData()
206 sync_data->version = *version; in GetExtensionSyncData()
207 sync_data->enabled = specifics.enabled(); in GetExtensionSyncData()
208 sync_data->incognito_enabled = specifics.incognito_enabled(); in GetExtensionSyncData()
/external/chromium_org/chrome/browser/sync/sessions2/
Dsessions_sync_manager_unittest.cc186 if (it->sync_data().GetTag() == manager_->current_machine_tag()) { in FilterOutLocalHeaderChanges()
539 const SyncData data(out[0].sync_data()); in TEST_F()
551 const SyncData data_2(out[1].sync_data()); in TEST_F()
574 EXPECT_TRUE(out[0].sync_data().GetSpecifics().session().has_header()); in TEST_F()
647 const SyncData data(output[0].sync_data()); in TEST_F()
660 const SyncData data(output[i].sync_data()); in TEST_F()
668 EXPECT_TRUE(output[2].sync_data().GetSpecifics().session().has_tab()); in TEST_F()
673 const SyncData data_2(output[3].sync_data()); in TEST_F()
830 EXPECT_TRUE(changes[i].sync_data().IsValid()); in TEST_F()
831 EXPECT_EQ(1U, expected_tags.erase(changes[i].sync_data().GetTag())); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/search_engines/
Dtemplate_url_service_sync_unittest.cc36 std::string GetGUID(const syncer::SyncData& sync_data) { in GetGUID() argument
37 return sync_data.GetSpecifics().search_engine().sync_guid(); in GetGUID()
41 std::string GetURL(const syncer::SyncData& sync_data) { in GetURL() argument
42 return sync_data.GetSpecifics().search_engine().url(); in GetURL()
46 std::string GetKeyword(const syncer::SyncData& sync_data) { in GetKeyword() argument
47 return sync_data.GetSpecifics().search_engine().keyword(); in GetKeyword()
141 change_map_[GetGUID(iter->sync_data())] = *iter; in ProcessSyncChanges()
240 TemplateURL* Deserialize(const syncer::SyncData& sync_data);
380 const syncer::SyncData& sync_data) { in Deserialize() argument
383 NULL, sync_data, &dummy); in Deserialize()
[all …]

1234