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

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

Issue 6122006: Cleanup: Remove unneeded includes of pref_names.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 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" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/common/net/gaia/gaia_constants.h" 17 #include "chrome/common/net/gaia/gaia_constants.h"
18 #include "chrome/common/net/gaia/google_service_auth_error.h" 18 #include "chrome/common/net/gaia/google_service_auth_error.h"
19 #include "chrome/common/notification_source.h" 19 #include "chrome/common/notification_source.h"
20 #include "chrome/common/pref_names.h"
21 20
22 // The default value for min_timestamp_needed_ when we're not in the 21 // The default value for min_timestamp_needed_ when we're not in the
23 // WAITING_FOR_UPDATES state. 22 // WAITING_FOR_UPDATES state.
24 static const int kMinTimestampNeededNone = -1; 23 static const int kMinTimestampNeededNone = -1;
25 24
26 // The amount of time for which we wait for a live sync operation to complete. 25 // The amount of time for which we wait for a live sync operation to complete.
27 static const int kLiveSyncOperationTimeoutMs = 30000; 26 static const int kLiveSyncOperationTimeoutMs = 30000;
28 27
29 // Simple class to implement a timeout using PostDelayedTask. If it is not 28 // Simple class to implement a timeout using PostDelayedTask. If it is not
30 // aborted before picked up by a message queue, then it asserts with the message 29 // aborted before picked up by a message queue, then it asserts with the message
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 << ", service_is_pushing_changes: " << ServiceIsPushingChanges(); 592 << ", service_is_pushing_changes: " << ServiceIsPushingChanges();
594 } else { 593 } else {
595 VLOG(1) << "Client " << id_ << ": " << message 594 VLOG(1) << "Client " << id_ << ": " << message
596 << ": Sync session snapshot not available."; 595 << ": Sync session snapshot not available.";
597 } 596 }
598 } else { 597 } else {
599 VLOG(1) << "Client " << id_ << ": " << message 598 VLOG(1) << "Client " << id_ << ": " << message
600 << ": Sync service not available."; 599 << ": Sync service not available.";
601 } 600 }
602 } 601 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_factory_impl.cc ('k') | chrome/browser/sync/profile_sync_service_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698