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

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

Issue 7647026: base: Add three helper functions to Values API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a typo Ceate -> Create 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/engine/syncapi.h" 5 #include "chrome/browser/sync/engine/syncapi.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <bitset> 8 #include <bitset>
9 #include <iomanip> 9 #include <iomanip>
10 #include <list> 10 #include <list>
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 } 1173 }
1174 node_value = node_dict; 1174 node_value = node_dict;
1175 } else { 1175 } else {
1176 ReadNode node(trans); 1176 ReadNode node(trans);
1177 if (node.InitByIdLookup(id)) { 1177 if (node.InitByIdLookup(id)) {
1178 node_value = node.GetDetailsAsValue(); 1178 node_value = node.GetDetailsAsValue();
1179 } 1179 }
1180 } 1180 }
1181 if (!node_value) { 1181 if (!node_value) {
1182 NOTREACHED(); 1182 NOTREACHED();
1183 node_value = Value::CreateNullValue(); 1183 node_value = base::NullValue();
1184 } 1184 }
1185 value->Set("node", node_value); 1185 value->Set("node", node_value);
1186 return value; 1186 return value;
1187 } 1187 }
1188 1188
1189 SyncManager::ExtraPasswordChangeRecordData::ExtraPasswordChangeRecordData() {} 1189 SyncManager::ExtraPasswordChangeRecordData::ExtraPasswordChangeRecordData() {}
1190 1190
1191 SyncManager::ExtraPasswordChangeRecordData::ExtraPasswordChangeRecordData( 1191 SyncManager::ExtraPasswordChangeRecordData::ExtraPasswordChangeRecordData(
1192 const sync_pb::PasswordSpecificsData& data) 1192 const sync_pb::PasswordSpecificsData& data)
1193 : unencrypted_(data) { 1193 : unencrypted_(data) {
(...skipping 1880 matching lines...) Expand 10 before | Expand all | Expand 10 after
3074 void SyncManager::TriggerOnIncomingNotificationForTest( 3074 void SyncManager::TriggerOnIncomingNotificationForTest(
3075 const syncable::ModelTypeBitSet& model_types) { 3075 const syncable::ModelTypeBitSet& model_types) {
3076 syncable::ModelTypePayloadMap model_types_with_payloads = 3076 syncable::ModelTypePayloadMap model_types_with_payloads =
3077 syncable::ModelTypePayloadMapFromBitSet(model_types, 3077 syncable::ModelTypePayloadMapFromBitSet(model_types,
3078 std::string()); 3078 std::string());
3079 3079
3080 data_->OnIncomingNotification(model_types_with_payloads); 3080 data_->OnIncomingNotification(model_types_with_payloads);
3081 } 3081 }
3082 3082
3083 } // namespace sync_api 3083 } // namespace sync_api
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/search_provider_install_data_unittest.cc ('k') | chrome/browser/sync/engine/syncapi_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698