Home
last modified time | relevance | path

Searched refs:sync_service_ (Results 1 – 25 of 39) sorted by relevance

12

/external/chromium/chrome/browser/ui/webui/
Dnew_tab_page_sync_handler.cc74 NewTabPageSyncHandler::NewTabPageSyncHandler() : sync_service_(NULL), in NewTabPageSyncHandler()
79 if (sync_service_) in ~NewTabPageSyncHandler()
80 sync_service_->RemoveObserver(this); in ~NewTabPageSyncHandler()
100 sync_service_ = web_ui->GetProfile()->GetProfileSyncService(); in Attach()
101 DCHECK(sync_service_); // This shouldn't get called by an incognito NTP. in Attach()
102 DCHECK(!sync_service_->IsManaged()); // And neither if sync is managed. in Attach()
103 sync_service_->AddObserver(this); in Attach()
127 if (!sync_service_ || sync_service_->IsManaged()) { in BuildAndSendSyncStatus()
133 if (!sync_service_->HasSyncSetupCompleted()) { in BuildAndSendSyncStatus()
146 sync_ui_util::GetStatusLabelsForNewTabPage(sync_service_, in BuildAndSendSyncStatus()
[all …]
Dnew_tab_page_sync_handler.h60 ProfileSyncService* sync_service_; variable
/external/chromium/chrome/browser/sync/glue/
Dtheme_model_associator.cc31 : sync_service_(sync_service) { in ThemeModelAssociator()
32 DCHECK(sync_service_); in ThemeModelAssociator()
38 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels()
45 Profile* profile = sync_service_->profile(); in AssociateModels()
84 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes()
98 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in CryptoReadyIfNecessary()
100 sync_service_->GetEncryptedDataTypes(&encrypted_types); in CryptoReadyIfNecessary()
102 sync_service_->IsCryptographerReady(&trans); in CryptoReadyIfNecessary()
Dpreference_model_associator.cc26 : sync_service_(sync_service), in PreferenceModelAssociator()
29 DCHECK(sync_service_); in PreferenceModelAssociator()
34 PrefService* pref_service = sync_service_->profile()->GetPrefs(); in PreferenceModelAssociator()
51 PrefService* pref_service = sync_service_->profile()->GetPrefs(); in InitPrefNodeAndAssociate()
116 PrefService* pref_service = sync_service_->profile()->GetPrefs(); in AssociateModels()
125 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels()
158 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes()
212 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in GetSyncIdForTaggedNode()
331 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in CryptoReadyIfNecessary()
333 sync_service_->GetEncryptedDataTypes(&encrypted_types); in CryptoReadyIfNecessary()
[all …]
Dfrontend_data_type_controller.cc21 sync_service_(NULL) {} in FrontendDataTypeController()
29 sync_service_(sync_service), in FrontendDataTypeController()
100 sync_service_->ActivateDataType(this, change_processor_.get()); in Associate()
117 sync_service_->DeactivateDataType(this, change_processor_.get()); in Stop()
150 sync_service_->OnUnrecoverableError(from_here, message); in OnUnrecoverableError()
Dautofill_profile_model_associator.cc23 : sync_service_(sync_service), in AutofillProfileModelAssociator()
30 DCHECK(sync_service_); in AutofillProfileModelAssociator()
40 : sync_service_(NULL), in AutofillProfileModelAssociator()
119 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in GetSyncIdForTaggedNode()
160 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels()
184 if (sync_service_->GetAutofillMigrationState() != in AssociateModels()
189 sync_service_->SetAutofillMigrationDebugInfo( in AssociateModels()
192 sync_service_->SetAutofillMigrationState( in AssociateModels()
221 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes()
509 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in CryptoReadyIfNecessary()
[all …]
Dsession_model_associator.cc40 sync_service_(sync_service), in SessionModelAssociator()
43 DCHECK(sync_service_); in SessionModelAssociator()
50 sync_service_(sync_service), in SessionModelAssociator()
53 DCHECK(sync_service_); in SessionModelAssociator()
71 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes()
90 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in GetSyncIdFromSessionTag()
162 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in ReassociateWindows()
241 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in Associate()
396 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels()
725 sync_service_(sync_service) { in TabNodePool()
[all …]
Dautofill_model_associator.cc47 : sync_service_(sync_service), in AutofillModelAssociator()
54 DCHECK(sync_service_); in AutofillModelAssociator()
154 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels()
187 if (sync_service_->GetAutofillMigrationState() != in AssociateModels()
192 sync_service_->SetAutofillMigrationDebugInfo( in AssociateModels()
392 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes()
452 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in GetSyncIdForTaggedNode()
540 sync_service_->GetAutofillMigrationState(); in HasNotMigratedYet()
562 sync_service_->SetAutofillMigrationState( in HasNotMigratedYet()
572 sync_service_->SetAutofillMigrationState(syncable::MIGRATED); in HasNotMigratedYet()
[all …]
Dpassword_data_type_controller.cc27 sync_service_(sync_service), in PasswordDataTypeController()
97 sync_service_->DeactivateDataType(this, change_processor_.get()); in Stop()
139 sync_service_, in StartImpl()
166 sync_service_->ActivateDataType(this, change_processor_.get()); in StartImpl()
223 sync_service_->OnUnrecoverableError(from_here, message); in OnUnrecoverableErrorImpl()
Dtyped_url_data_type_controller.cc54 sync_service_(sync_service), in TypedUrlDataTypeController()
139 sync_service_->DeactivateDataType(this, change_processor_.get()); in Stop()
181 sync_service_, in StartImpl()
208 sync_service_->ActivateDataType(this, change_processor_.get()); in StartImpl()
278 sync_service_->OnUnrecoverableError(from_here, message); in OnUnrecoverableErrorImpl()
Dautofill_data_type_controller.cc28 sync_service_(sync_service), in AutofillDataTypeController()
145 sync_service_->DeactivateDataType(this, change_processor_.get()); in Stop()
213 sync_service_, in StartImpl()
243 sync_service_->ActivateDataType(this, change_processor_.get()); in StartImpl()
320 sync_service_->OnUnrecoverableError(from_here, message); in OnUnrecoverableErrorImpl()
Dpassword_model_associator.cc25 : sync_service_(sync_service), in PasswordModelAssociator()
30 DCHECK(sync_service_); in PasswordModelAssociator()
63 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels()
186 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes()
209 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in CryptoReadyIfNecessary()
211 return sync_service_->IsCryptographerReady(&trans); in CryptoReadyIfNecessary()
257 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in GetSyncIdForTaggedNode()
Dtyped_url_model_associator.cc22 : sync_service_(sync_service), in TypedUrlModelAssociator()
26 DCHECK(sync_service_); in TypedUrlModelAssociator()
61 sync_api::WriteTransaction trans(sync_service_->GetUserShare()); in AssociateModels()
218 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes()
275 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in GetSyncIdForTaggedNode()
492 sync_api::ReadTransaction trans(sync_service_->GetUserShare()); in CryptoReadyIfNecessary()
494 sync_service_->GetEncryptedDataTypes(&encrypted_types); in CryptoReadyIfNecessary()
496 sync_service_->IsCryptographerReady(&trans); in CryptoReadyIfNecessary()
Dbookmark_data_type_controller.cc41 Source<Profile>(sync_service_->profile())); in StartModels()
67 CreateBookmarkSyncComponents(sync_service_, this); in CreateSyncComponents()
Dtheme_model_associator.h40 ProfileSyncService* sync_service_;
Dpreference_data_type_controller.cc29 CreatePreferenceSyncComponents(sync_service_, this); in CreateSyncComponents()
Dsession_data_type_controller.cc33 CreateSessionSyncComponents(sync_service_, this); in CreateSyncComponents()
Dtheme_data_type_controller.cc36 profile_sync_factory_->CreateThemeSyncComponents(sync_service_, in CreateSyncComponents()
Dextension_data_type_controller.cc36 profile_sync_factory_->CreateExtensionSyncComponents(sync_service_, in CreateSyncComponents()
Dapp_data_type_controller.cc36 profile_sync_factory_->CreateAppSyncComponents(sync_service_, in CreateSyncComponents()
Dsession_model_associator.h290 ProfileSyncService* sync_service_; variable
404 ProfileSyncService* sync_service_; variable
/external/chromium/chrome/browser/sync/
Dprofile_sync_service_session_unittest.cc59 ProfileSyncService* sync_service() { return sync_service_.get(); } in sync_service()
61 TestIdFactory* ids() { return sync_service_->id_factory(); } in ids()
95 sync_service_.reset(); in TearDown()
106 if (sync_service_.get()) in StartSyncService()
108 sync_service_.reset(new TestProfileSyncService( in StartSyncService()
114 new SessionModelAssociator(sync_service_.get(), in StartSyncService()
117 sync_service_.get(), model_associator_, in StartSyncService()
124 sync_service_->RegisterDataTypeController( in StartSyncService()
127 sync_service_.get())); in StartSyncService()
130 sync_service_->Initialize(); in StartSyncService()
[all …]
/external/chromium/chrome/browser/ui/views/bookmarks/
Dbookmark_bar_view.cc349 sync_service_(NULL), in BookmarkBarView()
359 sync_service_ = profile->GetProfileSyncService(); in BookmarkBarView()
360 sync_service_->AddObserver(this); in BookmarkBarView()
382 if (sync_service_) in ~BookmarkBarView()
383 sync_service_->RemoveObserver(this); in ~BookmarkBarView()
447 if (sync_ui_util::ShouldShowSyncErrorButton(sync_service_)) in GetMinimumSize()
991 if (!throbbing_view_ && sync_service_ && sync_service_->SetupInProgress()) { in BookmarkNodeAddedImpl()
1180 DCHECK(sync_service_ && !sync_service_->IsManaged()); in ButtonPressed()
1181 sync_service_->ShowErrorUI(GetWindow()->GetNativeWindow()); in ButtonPressed()
1668 if (sync_ui_util::ShouldShowSyncErrorButton(sync_service_)) { in LayoutItems()
[all …]
/external/chromium/chrome/browser/ui/gtk/bookmarks/
Dbookmark_bar_gtk.cc133 sync_service_(NULL), in BookmarkBarGtk()
148 sync_service_ = profile->GetProfileSyncService(); in BookmarkBarGtk()
149 sync_service_->AddObserver(this); in BookmarkBarGtk()
337 if (sync_ui_util::ShouldShowSyncErrorButton(sync_service_)) { in Show()
373 if (sync_ui_util::ShouldShowSyncErrorButton(sync_service_)) { in OnStateChanged()
1022 DCHECK(sync_service_ && !sync_service_->IsManaged()); in OnSyncErrorButtonPressed()
1023 sync_service_->ShowErrorUI(NULL); in OnSyncErrorButtonPressed()
1388 if (sync_service_) in OnEventBoxDestroy()
1389 sync_service_->RemoveObserver(this); in OnEventBoxDestroy()
/external/chromium/chrome/browser/profiles/
Dprofile_impl.cc610 sync_service_.reset(); in ~ProfileImpl()
1190 return (sync_service_.get() != NULL); in HasProfileSyncService()
1359 if (!sync_service_.get()) { in GetProfileSyncService()
1376 if (!sync_service_.get()) in GetProfileSyncService()
1378 return sync_service_.get(); in GetProfileSyncService()
1397 sync_service_.reset( in InitSyncService()
1399 sync_service_->Initialize(); in InitSyncService()

12