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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "chrome/browser/browser.h" | |
7 #include "chrome/browser/defaults.h" | 6 #include "chrome/browser/defaults.h" |
8 #include "chrome/browser/prefs/pref_service.h" | 7 #include "chrome/browser/prefs/pref_service.h" |
9 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
10 #include "chrome/browser/net/gaia/token_service.h" | 9 #include "chrome/browser/net/gaia/token_service.h" |
11 #include "chrome/browser/sync/glue/sync_backend_host.h" | 10 #include "chrome/browser/sync/glue/sync_backend_host.h" |
12 #include "chrome/browser/sync/profile_sync_service_harness.h" | 11 #include "chrome/browser/sync/profile_sync_service_harness.h" |
13 #include "chrome/browser/sync/sessions/session_state.h" | 12 #include "chrome/browser/sync/sessions/session_state.h" |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
| 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/common/net/gaia/gaia_constants.h" | 15 #include "chrome/common/net/gaia/gaia_constants.h" |
16 #include "chrome/common/net/gaia/google_service_auth_error.h" | 16 #include "chrome/common/net/gaia/google_service_auth_error.h" |
17 #include "chrome/common/notification_source.h" | 17 #include "chrome/common/notification_source.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 | 19 |
20 // 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 |
21 // WAITING_FOR_UPDATES state. | 21 // WAITING_FOR_UPDATES state. |
22 static const int kMinTimestampNeededNone = -1; | 22 static const int kMinTimestampNeededNone = -1; |
23 | 23 |
24 // 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. |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 << ", service_is_pushing_changes: " << ServiceIsPushingChanges(); | 549 << ", service_is_pushing_changes: " << ServiceIsPushingChanges(); |
550 } else { | 550 } else { |
551 VLOG(1) << "Client " << id_ << ": " << message | 551 VLOG(1) << "Client " << id_ << ": " << message |
552 << ": Sync session snapshot not available."; | 552 << ": Sync session snapshot not available."; |
553 } | 553 } |
554 } else { | 554 } else { |
555 VLOG(1) << "Client " << id_ << ": " << message | 555 VLOG(1) << "Client " << id_ << ": " << message |
556 << ": Sync service not available."; | 556 << ": Sync service not available."; |
557 } | 557 } |
558 } | 558 } |
OLD | NEW |