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

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

Issue 2551023006: [Sync] SyncEngine 1.5: Fix all backend references in PSS. (Closed)
Patch Set: Fix Android. Created 4 years 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
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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 receive_token_time.SetValue( 382 receive_token_time.SetValue(
383 GetTimeStr(token_status.token_receive_time, "n/a")); 383 GetTimeStr(token_status.token_receive_time, "n/a"));
384 std::string err = token_status.last_get_token_error.error_message(); 384 std::string err = token_status.last_get_token_error.error_message();
385 token_request_status.SetValue(err.empty() ? "OK" : err); 385 token_request_status.SetValue(err.empty() ? "OK" : err);
386 next_token_request.SetValue( 386 next_token_request.SetValue(
387 GetTimeStr(token_status.next_token_request_time, "not scheduled")); 387 GetTimeStr(token_status.next_token_request_time, "not scheduled"));
388 388
389 last_synced.SetValue(service->GetLastSyncedTimeString()); 389 last_synced.SetValue(service->GetLastSyncedTimeString());
390 is_setup_complete.SetValue(service->IsFirstSetupComplete()); 390 is_setup_complete.SetValue(service->IsFirstSetupComplete());
391 backend_initialization.SetValue( 391 backend_initialization.SetValue(
392 service->GetBackendInitializationStateString()); 392 service->GetEngineInitializationStateString());
393 if (is_status_valid) { 393 if (is_status_valid) {
394 is_syncing.SetValue(full_status.syncing); 394 is_syncing.SetValue(full_status.syncing);
395 retry_time.SetValue(GetTimeStr(full_status.retry_time, 395 retry_time.SetValue(GetTimeStr(full_status.retry_time,
396 "Scheduler is not in backoff or throttled")); 396 "Scheduler is not in backoff or throttled"));
397 } 397 }
398 398
399 if (snapshot.is_initialized()) 399 if (snapshot.is_initialized())
400 is_throttled.SetValue(snapshot.is_silenced()); 400 is_throttled.SetValue(snapshot.is_silenced());
401 if (is_status_valid) { 401 if (is_status_valid) {
402 are_notifications_enabled.SetValue(full_status.notifications_enabled); 402 are_notifications_enabled.SetValue(full_status.notifications_enabled);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « components/precache/content/precache_manager.cc ('k') | components/sync/driver/fake_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698