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

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

Issue 7633077: Refactor syncapi.h (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: This patch has compiled from a clean build Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 5 #include "chrome/browser/sync/profile_sync_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <map> 8 #include <map>
9 #include <ostream> 9 #include <ostream>
10 #include <set> 10 #include <set>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/ref_counted.h" 17 #include "base/memory/ref_counted.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "base/metrics/histogram.h" 19 #include "base/metrics/histogram.h"
20 #include "base/string16.h" 20 #include "base/string16.h"
21 #include "base/stringprintf.h" 21 #include "base/stringprintf.h"
22 #include "base/task.h" 22 #include "base/task.h"
23 #include "base/threading/thread_restrictions.h" 23 #include "base/threading/thread_restrictions.h"
24 #include "chrome/browser/net/chrome_cookie_notification_details.h" 24 #include "chrome/browser/net/chrome_cookie_notification_details.h"
25 #include "chrome/browser/net/gaia/token_service.h" 25 #include "chrome/browser/net/gaia/token_service.h"
26 #include "chrome/browser/prefs/pref_service.h" 26 #include "chrome/browser/prefs/pref_service.h"
27 #include "chrome/browser/profiles/profile.h" 27 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/sync/backend_migrator.h" 28 #include "chrome/browser/sync/backend_migrator.h"
29 #include "chrome/browser/sync/engine/configure_reason.h" 29 #include "chrome/browser/sync/engine/configure_reason.h"
30 #include "chrome/browser/sync/engine/syncapi.h"
31 #include "chrome/browser/sync/glue/change_processor.h" 30 #include "chrome/browser/sync/glue/change_processor.h"
32 #include "chrome/browser/sync/glue/data_type_controller.h" 31 #include "chrome/browser/sync/glue/data_type_controller.h"
33 #include "chrome/browser/sync/glue/data_type_manager.h" 32 #include "chrome/browser/sync/glue/data_type_manager.h"
34 #include "chrome/browser/sync/glue/session_data_type_controller.h" 33 #include "chrome/browser/sync/glue/session_data_type_controller.h"
34 #include "chrome/browser/sync/internal_api/sync_manager.h"
35 #include "chrome/browser/sync/js/js_arg_list.h" 35 #include "chrome/browser/sync/js/js_arg_list.h"
36 #include "chrome/browser/sync/js/js_event_details.h" 36 #include "chrome/browser/sync/js/js_event_details.h"
37 #include "chrome/browser/sync/profile_sync_factory.h" 37 #include "chrome/browser/sync/profile_sync_factory.h"
38 #include "chrome/browser/sync/signin_manager.h" 38 #include "chrome/browser/sync/signin_manager.h"
39 #include "chrome/browser/sync/util/oauth.h" 39 #include "chrome/browser/sync/util/oauth.h"
40 #include "chrome/browser/ui/browser.h" 40 #include "chrome/browser/ui/browser.h"
41 #include "chrome/browser/ui/browser_list.h" 41 #include "chrome/browser/ui/browser_list.h"
42 #include "chrome/browser/ui/browser_window.h" 42 #include "chrome/browser/ui/browser_window.h"
43 #include "chrome/common/chrome_notification_types.h" 43 #include "chrome/common/chrome_notification_types.h"
44 #include "chrome/common/chrome_switches.h" 44 #include "chrome/common/chrome_switches.h"
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 *profile_->GetPrefs()->GetList(prefs::kAcknowledgedSyncTypes)); 1461 *profile_->GetPrefs()->GetList(prefs::kAcknowledgedSyncTypes));
1462 syncable::ModelTypeSet registered; 1462 syncable::ModelTypeSet registered;
1463 GetRegisteredDataTypes(&registered); 1463 GetRegisteredDataTypes(&registered);
1464 syncable::ModelTypeBitSet registered_bit_set = 1464 syncable::ModelTypeBitSet registered_bit_set =
1465 syncable::ModelTypeBitSetFromSet(registered); 1465 syncable::ModelTypeBitSetFromSet(registered);
1466 unacknowledged = registered_bit_set & ~acknowledged; 1466 unacknowledged = registered_bit_set & ~acknowledged;
1467 } 1467 }
1468 return unacknowledged; 1468 return unacknowledged;
1469 } 1469 }
1470 1470
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/browser/sync/profile_sync_service_autofill_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698