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

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: For review. 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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 initial_sync_ended(false), 667 initial_sync_ended(false),
668 updates_available(0), 668 updates_available(0),
669 updates_received(0), 669 updates_received(0),
670 tombstone_updates_received(0), 670 tombstone_updates_received(0),
671 num_local_overwrites_total(0), 671 num_local_overwrites_total(0),
672 num_server_overwrites_total(0), 672 num_server_overwrites_total(0),
673 nonempty_get_updates(0), 673 nonempty_get_updates(0),
674 empty_get_updates(0), 674 empty_get_updates(0),
675 useless_sync_cycles(0), 675 useless_sync_cycles(0),
676 useful_sync_cycles(0), 676 useful_sync_cycles(0),
677 sync_count(0),
677 cryptographer_ready(false), 678 cryptographer_ready(false),
678 crypto_has_pending_keys(false) { 679 crypto_has_pending_keys(false) {
679 } 680 }
680 681
681 SyncManager::Status::~Status() { 682 SyncManager::Status::~Status() {
682 } 683 }
683 684
684 bool SyncManager::Init( 685 bool SyncManager::Init(
685 const FilePath& database_location, 686 const FilePath& database_location,
686 const WeakHandle<JsEventHandler>& event_handler, 687 const WeakHandle<JsEventHandler>& event_handler,
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2287 lookup->GetDownloadProgress(i.Get(), &marker); 2288 lookup->GetDownloadProgress(i.Get(), &marker);
2288 2289
2289 if (marker.token().empty()) 2290 if (marker.token().empty())
2290 result.Put(i.Get()); 2291 result.Put(i.Get());
2291 2292
2292 } 2293 }
2293 return result; 2294 return result;
2294 } 2295 }
2295 2296
2296 } // namespace sync_api 2297 } // namespace sync_api
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698