| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/sync/driver/about_sync_util.h" | 5 #include "components/sync/driver/about_sync_util.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 keystore_migration_time.SetValue( | 417 keystore_migration_time.SetValue( |
| 418 GetTimeStr(full_status.keystore_migration_time, "Not Migrated")); | 418 GetTimeStr(full_status.keystore_migration_time, "Not Migrated")); |
| 419 passphrase_type.SetValue( | 419 passphrase_type.SetValue( |
| 420 PassphraseTypeToString(full_status.passphrase_type)); | 420 PassphraseTypeToString(full_status.passphrase_type)); |
| 421 } | 421 } |
| 422 | 422 |
| 423 if (snapshot.is_initialized()) { | 423 if (snapshot.is_initialized()) { |
| 424 if (snapshot.legacy_updates_source() != | 424 if (snapshot.legacy_updates_source() != |
| 425 sync_pb::GetUpdatesCallerInfo::UNKNOWN) { | 425 sync_pb::GetUpdatesCallerInfo::UNKNOWN) { |
| 426 session_source.SetValue( | 426 session_source.SetValue( |
| 427 GetUpdatesSourceString(snapshot.legacy_updates_source())); | 427 ProtoEnumToString(snapshot.legacy_updates_source())); |
| 428 } | 428 } |
| 429 get_key_result.SetValue(GetSyncerErrorString( | 429 get_key_result.SetValue(GetSyncerErrorString( |
| 430 snapshot.model_neutral_state().last_get_key_result)); | 430 snapshot.model_neutral_state().last_get_key_result)); |
| 431 download_result.SetValue(GetSyncerErrorString( | 431 download_result.SetValue(GetSyncerErrorString( |
| 432 snapshot.model_neutral_state().last_download_updates_result)); | 432 snapshot.model_neutral_state().last_download_updates_result)); |
| 433 commit_result.SetValue( | 433 commit_result.SetValue( |
| 434 GetSyncerErrorString(snapshot.model_neutral_state().commit_result)); | 434 GetSyncerErrorString(snapshot.model_neutral_state().commit_result)); |
| 435 } | 435 } |
| 436 | 436 |
| 437 if (is_status_valid) { | 437 if (is_status_valid) { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 } | 515 } |
| 516 | 516 |
| 517 about_info->Set("type_status", service->GetTypeStatusMap()); | 517 about_info->Set("type_status", service->GetTypeStatusMap()); |
| 518 | 518 |
| 519 return about_info; | 519 return about_info; |
| 520 } | 520 } |
| 521 | 521 |
| 522 } // namespace sync_ui_util | 522 } // namespace sync_ui_util |
| 523 | 523 |
| 524 } // namespace syncer | 524 } // namespace syncer |
| OLD | NEW |