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" | 11 #include "chrome/browser/prefs/pref_service.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/net/gaia/token_service.h" | 13 #include "chrome/browser/net/gaia/token_service.h" |
14 #include "chrome/browser/sync/glue/sync_backend_host.h" | 14 #include "chrome/browser/sync/glue/sync_backend_host.h" |
15 #include "chrome/browser/sync/sessions/session_state.h" | 15 #include "chrome/browser/sync/sessions/session_state.h" |
16 #include "chrome/browser/ui/browser.h" | |
17 #include "chrome/common/net/gaia/gaia_constants.h" | 16 #include "chrome/common/net/gaia/gaia_constants.h" |
18 #include "chrome/common/net/gaia/google_service_auth_error.h" | 17 #include "chrome/common/net/gaia/google_service_auth_error.h" |
19 #include "chrome/common/notification_source.h" | 18 #include "chrome/common/notification_source.h" |
20 | 19 |
21 // The default value for min_timestamp_needed_ when we're not in the | 20 // The default value for min_timestamp_needed_ when we're not in the |
22 // WAITING_FOR_UPDATES state. | 21 // WAITING_FOR_UPDATES state. |
23 static const int kMinTimestampNeededNone = -1; | 22 static const int kMinTimestampNeededNone = -1; |
24 | 23 |
25 // The amount of time for which we wait for a live sync operation to complete. | 24 // The amount of time for which we wait for a live sync operation to complete. |
26 static const int kLiveSyncOperationTimeoutMs = 45000; | 25 static const int kLiveSyncOperationTimeoutMs = 45000; |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 << ", service_is_pushing_changes: " << ServiceIsPushingChanges(); | 591 << ", service_is_pushing_changes: " << ServiceIsPushingChanges(); |
593 } else { | 592 } else { |
594 VLOG(1) << "Client " << id_ << ": " << message | 593 VLOG(1) << "Client " << id_ << ": " << message |
595 << ": Sync session snapshot not available."; | 594 << ": Sync session snapshot not available."; |
596 } | 595 } |
597 } else { | 596 } else { |
598 VLOG(1) << "Client " << id_ << ": " << message | 597 VLOG(1) << "Client " << id_ << ": " << message |
599 << ": Sync service not available."; | 598 << ": Sync service not available."; |
600 } | 599 } |
601 } | 600 } |
OLD | NEW |