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

Side by Side Diff: chrome/browser/sync/internal_api/sync_manager.cc

Issue 9323015: [Sync] - In about:sync page display if the first sync after restart has taken place or not. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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) 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 "chrome/browser/sync/internal_api/sync_manager.h" 5 #include "chrome/browser/sync/internal_api/sync_manager.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 authenticated(false), 657 authenticated(false),
658 server_up(false), 658 server_up(false),
659 server_reachable(false), 659 server_reachable(false),
660 notifications_enabled(false), 660 notifications_enabled(false),
661 notifications_received(0), 661 notifications_received(0),
662 notifiable_commits(0), 662 notifiable_commits(0),
663 max_consecutive_errors(0), 663 max_consecutive_errors(0),
664 unsynced_count(0), 664 unsynced_count(0),
665 conflicting_count(0), 665 conflicting_count(0),
666 syncing(false), 666 syncing(false),
667 initial_sync_ended(false),
668 updates_available(0), 667 updates_available(0),
669 updates_received(0), 668 updates_received(0),
670 tombstone_updates_received(0), 669 tombstone_updates_received(0),
671 num_local_overwrites_total(0), 670 num_local_overwrites_total(0),
672 num_server_overwrites_total(0), 671 num_server_overwrites_total(0),
673 nonempty_get_updates(0), 672 nonempty_get_updates(0),
674 empty_get_updates(0), 673 empty_get_updates(0),
675 useless_sync_cycles(0), 674 useless_sync_cycles(0),
676 useful_sync_cycles(0), 675 useful_sync_cycles(0),
676 sync_count(0),
677 cryptographer_ready(false), 677 cryptographer_ready(false),
678 crypto_has_pending_keys(false) { 678 crypto_has_pending_keys(false) {
679 } 679 }
680 680
681 SyncManager::Status::~Status() { 681 SyncManager::Status::~Status() {
682 } 682 }
683 683
684 bool SyncManager::Init( 684 bool SyncManager::Init(
685 const FilePath& database_location, 685 const FilePath& database_location,
686 const WeakHandle<JsEventHandler>& event_handler, 686 const WeakHandle<JsEventHandler>& event_handler,
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2287 lookup->GetDownloadProgress(i.Get(), &marker); 2287 lookup->GetDownloadProgress(i.Get(), &marker);
2288 2288
2289 if (marker.token().empty()) 2289 if (marker.token().empty())
2290 result.Put(i.Get()); 2290 result.Put(i.Get());
2291 2291
2292 } 2292 }
2293 return result; 2293 return result;
2294 } 2294 }
2295 2295
2296 } // namespace sync_api 2296 } // namespace sync_api
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698