| 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/extensions/api/storage/settings_sync_util.h" | 5 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" |
| 6 | 6 |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "sync/protocol/app_setting_specifics.pb.h" | 9 #include "sync/protocol/app_setting_specifics.pb.h" |
| 10 #include "sync/protocol/extension_setting_specifics.pb.h" | 10 #include "sync/protocol/extension_setting_specifics.pb.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 return syncer::SyncChange( | 91 return syncer::SyncChange( |
| 92 FROM_HERE, | 92 FROM_HERE, |
| 93 syncer::SyncChange::ACTION_UPDATE, | 93 syncer::SyncChange::ACTION_UPDATE, |
| 94 CreateData(extension_id, key, value, type)); | 94 CreateData(extension_id, key, value, type)); |
| 95 } | 95 } |
| 96 | 96 |
| 97 syncer::SyncChange CreateDelete( | 97 syncer::SyncChange CreateDelete( |
| 98 const std::string& extension_id, | 98 const std::string& extension_id, |
| 99 const std::string& key, | 99 const std::string& key, |
| 100 syncer::ModelType type) { | 100 syncer::ModelType type) { |
| 101 DictionaryValue no_value; | 101 base::DictionaryValue no_value; |
| 102 return syncer::SyncChange( | 102 return syncer::SyncChange( |
| 103 FROM_HERE, | 103 FROM_HERE, |
| 104 syncer::SyncChange::ACTION_DELETE, | 104 syncer::SyncChange::ACTION_DELETE, |
| 105 CreateData(extension_id, key, no_value, type)); | 105 CreateData(extension_id, key, no_value, type)); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace settings_sync_util | 108 } // namespace settings_sync_util |
| 109 | 109 |
| 110 } // namespace extensions | 110 } // namespace extensions |
| OLD | NEW |