Lines Matching full:service
36 ProfileSyncService* service, string16* status_label,
45 if (service->GetAuthenticatedUsername().empty())
52 DCHECK(service->GetAuthenticatedUsername().empty());
72 string16 GetSyncedStateStatusLabel(ProfileSyncService* service) {
74 string16 user_name(service->GetAuthenticatedUsername());
84 service->GetLastSyncedTimeString());
90 MessageType GetStatusInfo(ProfileSyncService* service,
97 if (!service) {
101 if (service->HasSyncSetupCompleted()) {
102 ProfileSyncService::Status status(service->QueryDetailedSyncStatus());
103 const AuthError& auth_error = service->GetAuthError();
107 if (status.authenticated && !service->observed_passphrase_required()) {
110 status_label->assign(GetSyncedStateStatusLabel(service));
113 } else if (service->UIShouldDepictAuthInProgress()) {
119 } else if (service->observed_passphrase_required()) {
120 if (service->passphrase_required_for_decryption()) {
126 status_label->assign(GetSyncedStateStatusLabel(service));
135 status_label->assign(GetSyncedStateStatusLabel(service));
139 GetStatusLabelsForAuthError(auth_error, service,
148 if (service->SetupInProgress()) {
149 ProfileSyncService::Status status(service->QueryDetailedSyncStatus());
150 const AuthError& auth_error = service->GetAuthError();
155 if (service->UIShouldDepictAuthInProgress()) {
163 GetStatusLabelsForAuthError(auth_error, service, status_label, NULL);
172 } else if (service->unrecoverable_error_detected()) {
184 MessageType GetStatusInfoForNewTabPage(ProfileSyncService* service,
190 if (service->HasSyncSetupCompleted() &&
191 service->observed_passphrase_required()) {
192 if (!service->passphrase_required_for_decryption()) {
216 return GetStatusInfo(service, status_label, link_label);
221 MessageType GetStatusLabels(ProfileSyncService* service,
226 return sync_ui_util::GetStatusInfo(service, status_label, link_label);
229 MessageType GetStatusLabelsForNewTabPage(ProfileSyncService* service,
235 service, status_label, link_label);
238 MessageType GetStatus(ProfileSyncService* service) {
239 return sync_ui_util::GetStatusInfo(service, NULL, NULL);
242 bool ShouldShowSyncErrorButton(ProfileSyncService* service) {
243 return service &&
244 ((!service->IsManaged() &&
245 service->HasSyncSetupCompleted()) &&
246 (GetStatus(service) == sync_ui_util::SYNC_ERROR ||
247 service->observed_passphrase_required()));
250 string16 GetSyncMenuLabel(ProfileSyncService* service) {
251 MessageType type = GetStatus(service);
264 ProfileSyncService* service =
266 if (!service || !service->IsSyncEnabled()) {
271 if (service->HasSyncSetupCompleted()) {
279 service->ShowLoginDialog(NULL);
327 void ConstructAboutInformation(ProfileSyncService* service,
330 if (!service || !service->HasSyncSetupCompleted()) {
334 service->QueryDetailedSyncStatus());
336 strings->SetString("service_url", service->sync_service_url().spec());
345 service->GetAuthError().state()));
347 strings->SetString("time_since_sync", service->GetLastSyncedTimeString());
398 if (service->unrecoverable_error_detected()) {
401 service->unrecoverable_error_message());
402 tracked_objects::Location loc(service->unrecoverable_error_location());
406 } else if (!service->sync_initialized()) {
410 service->GetModelSafeRoutingInfo(&routes);
423 service->GetAutofillMigrationState() ==
426 service->GetAutofillMigrationDebugInfo();