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

Side by Side Diff: chrome/browser/sync/sync_ui_util.cc

Issue 6104003: sync: use progress markers instead of timestamps during GetUpdates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tim's fixes Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/sync/sync_ui_util.h" 5 #include "chrome/browser/sync/sync_ui_util.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/i18n/number_formatting.h" 9 #include "base/i18n/number_formatting.h"
10 #include "base/i18n/time_formatting.h" 10 #include "base/i18n/time_formatting.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 sync_ui_util::AddBoolSyncDetail(details, 331 sync_ui_util::AddBoolSyncDetail(details,
332 "Initial Sync Ended", 332 "Initial Sync Ended",
333 full_status.initial_sync_ended); 333 full_status.initial_sync_ended);
334 sync_ui_util::AddBoolSyncDetail(details, 334 sync_ui_util::AddBoolSyncDetail(details,
335 "Syncer Stuck", 335 "Syncer Stuck",
336 full_status.syncer_stuck); 336 full_status.syncer_stuck);
337 sync_ui_util::AddIntSyncDetail(details, 337 sync_ui_util::AddIntSyncDetail(details,
338 "Updates Available", 338 "Updates Available",
339 full_status.updates_available); 339 full_status.updates_available);
340 sync_ui_util::AddIntSyncDetail(details, 340 sync_ui_util::AddIntSyncDetail(details,
341 "Updates Received", 341 "Updates Downloaded (All)",
342 full_status.updates_received); 342 full_status.updates_received);
343 sync_ui_util::AddIntSyncDetail(details,
344 "Updates Downloaded (Tombstones)",
345 full_status.tombstone_updates_received);
343 sync_ui_util::AddBoolSyncDetail(details, 346 sync_ui_util::AddBoolSyncDetail(details,
344 "Disk Full", 347 "Disk Full",
345 full_status.disk_full); 348 full_status.disk_full);
346 sync_ui_util::AddBoolSyncDetail(details,
347 "Invalid Store",
348 full_status.invalid_store);
349 sync_ui_util::AddIntSyncDetail(details, 349 sync_ui_util::AddIntSyncDetail(details,
350 "Max Consecutive Errors", 350 "Max Consecutive Errors",
351 full_status.max_consecutive_errors); 351 full_status.max_consecutive_errors);
352 352
353 if (service->unrecoverable_error_detected()) { 353 if (service->unrecoverable_error_detected()) {
354 strings->Set("unrecoverable_error_detected", new FundamentalValue(true)); 354 strings->Set("unrecoverable_error_detected", new FundamentalValue(true));
355 strings->SetString("unrecoverable_error_message", 355 strings->SetString("unrecoverable_error_message",
356 service->unrecoverable_error_message()); 356 service->unrecoverable_error_message());
357 tracked_objects::Location loc(service->unrecoverable_error_location()); 357 tracked_objects::Location loc(service->unrecoverable_error_location());
358 std::string location_str; 358 std::string location_str;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 396
397 DictionaryValue* val = new DictionaryValue; 397 DictionaryValue* val = new DictionaryValue;
398 val->SetString("stat_name", "Autofill Migration Time"); 398 val->SetString("stat_name", "Autofill Migration Time");
399 val->SetString("stat_value", ConstructTime(info.autofill_migration_time)); 399 val->SetString("stat_value", ConstructTime(info.autofill_migration_time));
400 details->Append(val); 400 details->Append(val);
401 } 401 }
402 } 402 }
403 } 403 }
404 404
405 } // namespace sync_ui_util 405 } // namespace sync_ui_util
OLDNEW
« no previous file with comments | « chrome/browser/sync/sessions/sync_session_unittest.cc ('k') | chrome/browser/sync/syncable/directory_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698