OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/prefs/pref_model_associator.h" | 5 #include "chrome/browser/prefs/pref_model_associator.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/json/json_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
| 15 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/prefs/pref_service_syncable.h" | 16 #include "chrome/browser/prefs/pref_service_syncable.h" |
16 #include "chrome/common/chrome_notification_types.h" | |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "sync/api/sync_change.h" | 18 #include "sync/api/sync_change.h" |
19 #include "sync/api/sync_error_factory.h" | 19 #include "sync/api/sync_error_factory.h" |
20 #include "sync/protocol/preference_specifics.pb.h" | 20 #include "sync/protocol/preference_specifics.pb.h" |
21 #include "sync/protocol/sync.pb.h" | 21 #include "sync/protocol/sync.pb.h" |
22 | 22 |
23 using syncer::PREFERENCES; | 23 using syncer::PREFERENCES; |
24 using syncer::PRIORITY_PREFERENCES; | 24 using syncer::PRIORITY_PREFERENCES; |
25 | 25 |
26 namespace { | 26 namespace { |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
482 } | 482 } |
483 | 483 |
484 syncer::SyncError error = | 484 syncer::SyncError error = |
485 sync_processor_->ProcessSyncChanges(FROM_HERE, changes); | 485 sync_processor_->ProcessSyncChanges(FROM_HERE, changes); |
486 } | 486 } |
487 | 487 |
488 void PrefModelAssociator::SetPrefService(PrefServiceSyncable* pref_service) { | 488 void PrefModelAssociator::SetPrefService(PrefServiceSyncable* pref_service) { |
489 DCHECK(pref_service_ == NULL); | 489 DCHECK(pref_service_ == NULL); |
490 pref_service_ = pref_service; | 490 pref_service_ = pref_service; |
491 } | 491 } |
OLD | NEW |