OLD | NEW |
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/profile_sync_service_harness.h" | 5 #include "chrome/browser/sync/profile_sync_service_harness.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "chrome/browser/prefs/pref_service.h" | |
12 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/net/gaia/token_service.h" | 12 #include "chrome/browser/net/gaia/token_service.h" |
14 #include "chrome/browser/sync/glue/sync_backend_host.h" | 13 #include "chrome/browser/sync/glue/sync_backend_host.h" |
15 #include "chrome/browser/sync/sessions/session_state.h" | 14 #include "chrome/browser/sync/sessions/session_state.h" |
16 #include "chrome/common/net/gaia/gaia_constants.h" | 15 #include "chrome/common/net/gaia/gaia_constants.h" |
17 #include "chrome/common/net/gaia/google_service_auth_error.h" | 16 #include "chrome/common/net/gaia/google_service_auth_error.h" |
18 #include "chrome/common/notification_source.h" | 17 #include "chrome/common/notification_source.h" |
19 | 18 |
20 // The amount of time for which we wait for a live sync operation to complete. | 19 // The amount of time for which we wait for a live sync operation to complete. |
21 static const int kLiveSyncOperationTimeoutMs = 45000; | 20 static const int kLiveSyncOperationTimeoutMs = 45000; |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 << ", service_is_pushing_changes: " << ServiceIsPushingChanges(); | 590 << ", service_is_pushing_changes: " << ServiceIsPushingChanges(); |
592 } else { | 591 } else { |
593 VLOG(1) << "Client " << id_ << ": " << message | 592 VLOG(1) << "Client " << id_ << ": " << message |
594 << ": Sync session snapshot not available."; | 593 << ": Sync session snapshot not available."; |
595 } | 594 } |
596 } else { | 595 } else { |
597 VLOG(1) << "Client " << id_ << ": " << message | 596 VLOG(1) << "Client " << id_ << ": " << message |
598 << ": Sync service not available."; | 597 << ": Sync service not available."; |
599 } | 598 } |
600 } | 599 } |
OLD | NEW |