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

Side by Side Diff: chrome/browser/sync/engine/syncer_thread.cc

Issue 6621062: Refactor sync notifier out of sync api. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minox fixes. Created 9 years, 9 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/engine/syncer_thread.h" 5 #include "chrome/browser/sync/engine/syncer_thread.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/rand_util.h" 12 #include "base/rand_util.h"
13 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 13 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/browser/sync/engine/model_safe_worker.h" 15 #include "chrome/browser/sync/engine/model_safe_worker.h"
16 #include "chrome/browser/sync/engine/net/server_connection_manager.h" 16 #include "chrome/browser/sync/engine/net/server_connection_manager.h"
17 #include "chrome/browser/sync/engine/syncer.h" 17 #include "chrome/browser/sync/engine/syncer.h"
18 #include "chrome/browser/sync/sessions/sync_session.h" 18 #include "chrome/browser/sync/sessions/sync_session.h"
19 #include "jingle/notifier/listener/notification_constants.h"
20 19
21 #if defined(OS_MACOSX) 20 #if defined(OS_MACOSX)
22 #include <CoreFoundation/CFNumber.h> 21 #include <CoreFoundation/CFNumber.h>
23 #include <IOKit/IOTypes.h> 22 #include <IOKit/IOTypes.h>
24 #include <IOKit/IOKitLib.h> 23 #include <IOKit/IOKitLib.h>
25 #endif 24 #endif
26 25
27 using std::priority_queue; 26 using std::priority_queue;
28 using std::min; 27 using std::min;
29 using base::Time; 28 using base::Time;
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 was_logged = true; 886 was_logged = true;
888 VLOG(1) << "UserIdleTime unimplemented on this platform, synchronization " 887 VLOG(1) << "UserIdleTime unimplemented on this platform, synchronization "
889 "will not throttle when user idle"; 888 "will not throttle when user idle";
890 } 889 }
891 #endif 890 #endif
892 891
893 return 0; 892 return 0;
894 } 893 }
895 894
896 } // namespace browser_sync 895 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncapi_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698