/external/chromium/chrome/browser/ui/webui/ |
D | new_tab_page_sync_handler.cc | 74 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 …]
|
/external/chromium_org/chrome/browser/sync/ |
D | profile_sync_service_android.cc | 58 sync_service_(NULL), in ProfileSyncServiceAndroid() 74 sync_service_ = in ProfileSyncServiceAndroid() 76 DCHECK(sync_service_); in ProfileSyncServiceAndroid() 80 sync_service_->AddObserver(this); in Init() 84 if (sync_service_->HasObserver(this)) { in RemoveObserver() 85 sync_service_->RemoveObserver(this); in RemoveObserver() 140 sync_service_->UnsuppressAndStart(); in EnableSync() 149 sync_service_->StopAndSuppress(); in DisableSync() 162 if (sync_service_->IsSyncEnabledAndLoggedIn() && in SignInSync() 163 sync_service_->IsOAuthRefreshTokenAvailable() && in SignInSync() [all …]
|
D | profile_sync_service_password_unittest.cc | 141 return sync_service_->GetUserShare(); in GetUserShare() 145 syncer::WriteTransaction trans(FROM_HERE, sync_service_->GetUserShare()); in AddPasswordSyncNode() 197 if (!sync_service_) { in StartSyncService() 209 sync_service_ = sync; in StartSyncService() 212 sync_service_->GetPreferredDataTypes(); in StartSyncService() 214 sync_service_->ChangePreferredDataTypes(preferred_types); in StartSyncService() 216 new PasswordDataTypeController(sync_service_->factory(), in StartSyncService() 218 sync_service_); in StartSyncService() 220 sync_service_->components_factory_mock(); in StartSyncService() 225 sync_service_, password_store_.get(), data_type_controller)); in StartSyncService() [all …]
|
D | profile_sync_service_preference_unittest.cc | 84 syncer::WriteTransaction trans(FROM_HERE, sync_service_->GetUserShare()); in SetSyncedValue() 147 syncer::ReadTransaction trans(FROM_HERE, sync_service_->GetUserShare()); in GetSyncPreferenceCount() 157 if (sync_service_) in StartSyncService() 163 sync_service_ = static_cast<TestProfileSyncService*>( in StartSyncService() 166 sync_service_->set_backend_init_callback(callback); in StartSyncService() 172 sync_service_->components_factory_mock(); in StartSyncService() 182 sync_service_); in StartSyncService() 188 sync_service_->RegisterDataTypeController(dtc_); in StartSyncService() 192 sync_service_->Initialize(); in StartSyncService() 197 if (sync_service_->ShouldPushChanges()) { in StartSyncService() [all …]
|
/external/chromium_org/chrome/browser/ui/ash/ |
D | app_sync_ui_state.cc | 57 sync_service_(NULL), in AppSyncUIState() 76 DCHECK(!sync_service_); in StartObserving() 82 sync_service_ = ProfileSyncServiceFactory::GetForProfile(profile_); in StartObserving() 83 CHECK(sync_service_); in StartObserving() 84 sync_service_->AddObserver(this); in StartObserving() 88 if (!sync_service_) in StopObserving() 92 sync_service_->RemoveObserver(this); in StopObserving() 93 sync_service_ = NULL; in StopObserving() 122 if (!sync_service_ || !sync_service_->HasSyncSetupCompleted()) in CheckAppSync() 125 const bool synced = sync_service_->ShouldPushChanges(); in CheckAppSync() [all …]
|
/external/chromium_org/chrome/browser/ui/webui/ntp/ |
D | new_tab_page_sync_handler.cc | 36 NewTabPageSyncHandler::NewTabPageSyncHandler() : sync_service_(NULL), in NewTabPageSyncHandler() 41 if (sync_service_) in ~NewTabPageSyncHandler() 42 sync_service_->RemoveObserver(this); in ~NewTabPageSyncHandler() 62 sync_service_ = ProfileSyncServiceFactory::GetInstance()->GetForProfile( in RegisterMessages() 64 if (sync_service_) in RegisterMessages() 65 sync_service_->AddObserver(this); in RegisterMessages() 95 if (!sync_service_ || in BuildAndSendSyncStatus() 96 sync_service_->IsManaged() || in BuildAndSendSyncStatus() 104 if (!sync_service_->HasSyncSetupCompleted()) { in BuildAndSendSyncStatus() 118 sync_ui_util::GetStatusLabelsForNewTabPage(sync_service_, in BuildAndSendSyncStatus() [all …]
|
/external/chromium/chrome/browser/sync/glue/ |
D | theme_model_associator.cc | 31 : 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()
|
D | preference_model_associator.cc | 26 : 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 …]
|
D | frontend_data_type_controller.cc | 21 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()
|
D | autofill_profile_model_associator.cc | 23 : 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 …]
|
D | session_model_associator.cc | 40 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 …]
|
D | autofill_model_associator.cc | 47 : 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 …]
|
D | password_data_type_controller.cc | 27 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()
|
D | typed_url_data_type_controller.cc | 54 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()
|
/external/chromium_org/chrome/browser/ui/webui/ |
D | welcome_handler_android.cc | 15 : sync_service_(NULL), in WelcomeHandler() 38 sync_service_ = ProfileSyncServiceFactory::GetInstance()->GetForProfile( in RegisterMessages() 40 if (sync_service_) in RegisterMessages() 41 observer_manager_.Add(sync_service_); in RegisterMessages() 62 sync_service_ && sync_service_->IsSyncEnabledAndLoggedIn(); in UpdateSyncFooterVisibility()
|
/external/chromium_org/chrome/browser/extensions/api/sync_file_system/ |
D | extension_sync_event_observer.cc | 27 sync_service_(NULL) {} in ExtensionSyncEventObserver() 32 if (sync_service_ != NULL) { in InitializeForService() 33 DCHECK_EQ(sync_service_, sync_service); in InitializeForService() 36 sync_service_ = sync_service; in InitializeForService() 37 sync_service_->AddSyncEventObserver(this); in InitializeForService() 43 if (sync_service_ != NULL) in Shutdown() 44 sync_service_->RemoveSyncEventObserver(this); in Shutdown()
|
/external/chromium_org/chrome/browser/sync_file_system/ |
D | sync_file_system_service_unittest.cc | 132 sync_service_.reset(new SyncFileSystemService(&profile_)); in SetUp() 137 AddFileStatusObserver(sync_service_.get())).Times(1); in SetUp() 144 sync_service_->Initialize( in SetUp() 150 sync_service_->SetSyncEnabledForTesting(false); in SetUp() 156 sync_service_->Shutdown(); in TearDown() 175 sync_service_->InitializeForApp( in InitializeApp() 200 sync_service_->AddSyncEventObserver(&event_observer); in InitializeAppForObserverTest() 220 sync_service_->InitializeForApp( in InitializeAppForObserverTest() 231 sync_service_->RemoveSyncEventObserver(&event_observer); in InitializeAppForObserverTest() 248 sync_service_->SetSyncEnabledForTesting(true); in EnableSync() [all …]
|
/external/chromium/chrome/browser/sync/ |
D | profile_sync_service_session_unittest.cc | 59 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_org/chrome/browser/sync_file_system/drive_backend_v1/ |
D | local_sync_delegate.cc | 24 : sync_service_(sync_service), in LocalSyncDelegate() 47 sync_service_->EnsureOriginRootDirectory( in Run() 148 sync_service_->NotifyObserversFileStatusChanged( in DidUploadNewFile() 183 sync_service_->NotifyObserversFileStatusChanged( in DidCreateDirectory() 228 sync_service_->NotifyObserversFileStatusChanged( in DidUploadExistingFile() 283 sync_service_->NotifyObserversFileStatusChanged( in DidDelete() 296 sync_service_->NotifyObserversFileStatusChanged( in DidDelete() 379 sync_service_->AppendFetchChange( in DidResolveToRemote() 521 sync_service_->MarkConflict( in HandleManualResolutionCase() 574 return sync_service_->GDataErrorCodeToSyncStatusCodeWrapper(error); in GDataErrorCodeToSyncStatusCodeWrapper() [all …]
|
D | remote_sync_delegate.cc | 28 : sync_service_(sync_service), in RemoteSyncDelegate() 301 sync_service_->MarkConflict( in HandleManualResolutionCase() 411 sync_service_->RemoveRemoteChange(url()); in CompleteSync() 457 sync_service_->NotifyObserversFileStatusChanged( in DispatchCallbackAfterDidFinish() 469 return sync_service_->GDataErrorCodeToSyncStatusCodeWrapper(error); in GDataErrorCodeToSyncStatusCodeWrapper() 473 return sync_service_->metadata_store_.get(); in metadata_store() 477 return sync_service_->api_util_.get(); in api_util() 481 return &sync_service_->remote_change_handler_; in remote_change_handler() 485 return sync_service_->remote_change_processor_; in remote_change_processor() 489 return &sync_service_->conflict_resolution_resolver_; in conflict_resolution_resolver()
|
D | drive_file_sync_service_fake_unittest.cc | 222 sync_service_ = DriveFileSyncService::CreateForTesting( in SetUpDriveSyncService() 227 sync_service_->AddFileStatusObserver(&mock_file_status_observer_); in SetUpDriveSyncService() 228 sync_service_->SetRemoteChangeProcessor(mock_remote_processor()); in SetUpDriveSyncService() 229 sync_service_->SetSyncEnabled(enabled); in SetUpDriveSyncService() 234 if (sync_service_) { in TearDown() 235 sync_service_.reset(); in TearDown() 267 sync_service_->UpdateRegisteredOrigins(); in UpdateRegisteredOrigins() 283 return sync_service_->metadata_store_.get(); in metadata_store() 298 DriveFileSyncService* sync_service() { return sync_service_.get(); } in sync_service() 304 return sync_service_->remote_change_handler_; in remote_change_handler() [all …]
|
/external/chromium_org/chrome/browser/sync/glue/ |
D | session_model_associator.cc | 122 sync_service_(sync_service), in SessionModelAssociator() 132 DCHECK(sync_service_); in SessionModelAssociator() 140 sync_service_(sync_service), in SessionModelAssociator() 149 DCHECK(sync_service_); in SessionModelAssociator() 162 syncer::ReadTransaction trans(FROM_HERE, sync_service_->GetUserShare()); in SyncModelHasUserCreatedNodes() 177 syncer::ReadTransaction trans(FROM_HERE, sync_service_->GetUserShare()); in GetSyncIdFromSessionTag() 295 syncer::WriteTransaction trans(FROM_HERE, sync_service_->GetUserShare()); in AssociateWindows() 431 syncer::WriteTransaction trans(FROM_HERE, sync_service_->GetUserShare()); in WriteTabContentsToSyncModel() 585 scoped_ptr<DeviceInfo> local_device_info(sync_service_->GetLocalDeviceInfo()); in AssociateModels() 593 syncer::WriteTransaction trans(FROM_HERE, sync_service_->GetUserShare()); in AssociateModels() [all …]
|
D | shared_change_processor_unittest.cc | 41 sync_service_(&profile_) {} in SyncSharedChangeProcessorTest() 109 &sync_service_, in ConnectOnDBThread() 122 NiceMock<ProfileSyncServiceMock> sync_service_; member in browser_sync::__anone52d87ab0111::SyncSharedChangeProcessorTest
|
D | shared_change_processor.cc | 21 sync_service_(NULL), in SharedChangeProcessor() 63 sync_service_ = sync_service; in Connect() 75 sync_factory->CreateGenericChangeProcessor(sync_service_, in Connect() 177 sync_service_->ActivateDataType(type_, in ActivateDataType()
|
D | frontend_data_type_controller.cc | 29 sync_service_(sync_service), in FrontendDataTypeController() 113 sync_service_->DeactivateDataType(type()); in Stop() 143 sync_service_->DisableBrokenDatatype(type(), from_here, message); in OnSingleDatatypeUnrecoverableError() 149 sync_service_(NULL), in FrontendDataTypeController() 199 sync_service_->ActivateDataType(type(), model_safe_group(), in Associate()
|