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

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

Issue 7013040: Add information about sync session and other useful data to about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before commit. Created 9 years, 7 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
« no previous file with comments | « chrome/browser/sync/syncable/syncable.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/test_profile_sync_service.h" 5 #include "chrome/browser/sync/test_profile_sync_service.h"
6 6
7 #include "chrome/browser/sync/abstract_profile_sync_service_test.h" 7 #include "chrome/browser/sync/abstract_profile_sync_service_test.h"
8 #include "chrome/browser/sync/engine/syncapi.h" 8 #include "chrome/browser/sync/engine/syncapi.h"
9 #include "chrome/browser/sync/glue/data_type_controller.h" 9 #include "chrome/browser/sync/glue/data_type_controller.h"
10 #include "chrome/browser/sync/glue/sync_backend_host.h" 10 #include "chrome/browser/sync/glue/sync_backend_host.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ModelSafeRoutingInfo enabled_types; 59 ModelSafeRoutingInfo enabled_types;
60 GetModelSafeRoutingInfo(&enabled_types); 60 GetModelSafeRoutingInfo(&enabled_types);
61 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT]; 61 std::string download_progress_markers[syncable::MODEL_TYPE_COUNT];
62 for (ModelSafeRoutingInfo::const_iterator i = enabled_types.begin(); 62 for (ModelSafeRoutingInfo::const_iterator i = enabled_types.begin();
63 i != enabled_types.end(); ++i) { 63 i != enabled_types.end(); ++i) {
64 sync_ended.set(i->first); 64 sync_ended.set(i->first);
65 } 65 }
66 core_->HandleSyncCycleCompletedOnFrontendLoop(new SyncSessionSnapshot( 66 core_->HandleSyncCycleCompletedOnFrontendLoop(new SyncSessionSnapshot(
67 SyncerStatus(), ErrorCounters(), 0, false, 67 SyncerStatus(), ErrorCounters(), 0, false,
68 sync_ended, download_progress_markers, false, false, 0, 0, 0, false, 68 sync_ended, download_progress_markers, false, false, 0, 0, 0, false,
69 SyncSourceInfo())); 69 SyncSourceInfo(), 0));
70 } 70 }
71 71
72 sync_api::HttpPostProviderFactory* 72 sync_api::HttpPostProviderFactory*
73 SyncBackendHostForProfileSyncTest::MakeHttpBridgeFactory( 73 SyncBackendHostForProfileSyncTest::MakeHttpBridgeFactory(
74 net::URLRequestContextGetter* getter) { 74 net::URLRequestContextGetter* getter) {
75 return new browser_sync::TestHttpBridgeFactory; 75 return new browser_sync::TestHttpBridgeFactory;
76 } 76 }
77 77
78 void SyncBackendHostForProfileSyncTest::InitCore( 78 void SyncBackendHostForProfileSyncTest::InitCore(
79 const Core::DoInitializeOptions& options) { 79 const Core::DoInitializeOptions& options) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 void TestProfileSyncService::CreateBackend() { 256 void TestProfileSyncService::CreateBackend() {
257 backend_.reset(new browser_sync::SyncBackendHostForProfileSyncTest( 257 backend_.reset(new browser_sync::SyncBackendHostForProfileSyncTest(
258 profile(), 258 profile(),
259 set_initial_sync_ended_on_init_, 259 set_initial_sync_ended_on_init_,
260 synchronous_backend_initialization_)); 260 synchronous_backend_initialization_));
261 } 261 }
262 262
263 std::string TestProfileSyncService::GetLsidForAuthBootstraping() { 263 std::string TestProfileSyncService::GetLsidForAuthBootstraping() {
264 return "foo"; 264 return "foo";
265 } 265 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/syncable/syncable.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698