Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: components/sync/driver/about_sync_util.cc

Issue 2374223003: Sync MDP: reimplement value conversions ontop of visitors
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/sync/BUILD.gn ('k') | components/sync/engine/cycle/sync_cycle_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 keystore_migration_time.SetValue( 419 keystore_migration_time.SetValue(
420 GetTimeStr(full_status.keystore_migration_time, "Not Migrated")); 420 GetTimeStr(full_status.keystore_migration_time, "Not Migrated"));
421 passphrase_type.SetValue( 421 passphrase_type.SetValue(
422 PassphraseTypeToString(full_status.passphrase_type)); 422 PassphraseTypeToString(full_status.passphrase_type));
423 } 423 }
424 424
425 if (snapshot.is_initialized()) { 425 if (snapshot.is_initialized()) {
426 if (snapshot.legacy_updates_source() != 426 if (snapshot.legacy_updates_source() !=
427 sync_pb::GetUpdatesCallerInfo::UNKNOWN) { 427 sync_pb::GetUpdatesCallerInfo::UNKNOWN) {
428 session_source.SetValue( 428 session_source.SetValue(
429 syncer::GetUpdatesSourceString(snapshot.legacy_updates_source())); 429 syncer::ProtoEnumToString(snapshot.legacy_updates_source()));
430 } 430 }
431 get_key_result.SetValue(GetSyncerErrorString( 431 get_key_result.SetValue(GetSyncerErrorString(
432 snapshot.model_neutral_state().last_get_key_result)); 432 snapshot.model_neutral_state().last_get_key_result));
433 download_result.SetValue(GetSyncerErrorString( 433 download_result.SetValue(GetSyncerErrorString(
434 snapshot.model_neutral_state().last_download_updates_result)); 434 snapshot.model_neutral_state().last_download_updates_result));
435 commit_result.SetValue( 435 commit_result.SetValue(
436 GetSyncerErrorString(snapshot.model_neutral_state().commit_result)); 436 GetSyncerErrorString(snapshot.model_neutral_state().commit_result));
437 } 437 }
438 438
439 if (is_status_valid) { 439 if (is_status_valid) {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 } 517 }
518 518
519 about_info->Set("type_status", service->GetTypeStatusMap()); 519 about_info->Set("type_status", service->GetTypeStatusMap());
520 520
521 return about_info; 521 return about_info;
522 } 522 }
523 523
524 } // namespace sync_ui_util 524 } // namespace sync_ui_util
525 525
526 } // namespace sync_driver 526 } // namespace sync_driver
OLDNEW
« no previous file with comments | « components/sync/BUILD.gn ('k') | components/sync/engine/cycle/sync_cycle_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698