OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "sync/syncable/directory_backing_store.h" | 5 #include "sync/syncable/directory_backing_store.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 "?, " // store_birthday | 1262 "?, " // store_birthday |
1263 "?, " // db_create_version | 1263 "?, " // db_create_version |
1264 "?, " // db_create_time | 1264 "?, " // db_create_time |
1265 "-2, " // next_id | 1265 "-2, " // next_id |
1266 "?, " // cache_guid | 1266 "?, " // cache_guid |
1267 // TODO(rlarocque, 124140): Remove notification_state field. | 1267 // TODO(rlarocque, 124140): Remove notification_state field. |
1268 "?, " // notification_state | 1268 "?, " // notification_state |
1269 "?);")); // bag_of_chips | 1269 "?);")); // bag_of_chips |
1270 s.BindString(0, dir_name_); // id | 1270 s.BindString(0, dir_name_); // id |
1271 s.BindString(1, dir_name_); // name | 1271 s.BindString(1, dir_name_); // name |
1272 s.BindString(2, ""); // store_birthday | 1272 s.BindString(2, std::string()); // store_birthday |
1273 // TODO(akalin): Remove this unused db_create_version field. (Or | 1273 // TODO(akalin): Remove this unused db_create_version field. (Or |
1274 // actually use it for something.) http://crbug.com/118356 | 1274 // actually use it for something.) http://crbug.com/118356 |
1275 s.BindString(3, "Unknown"); // db_create_version | 1275 s.BindString(3, "Unknown"); // db_create_version |
1276 s.BindInt(4, static_cast<int32>(time(0))); // db_create_time | 1276 s.BindInt(4, static_cast<int32>(time(0))); // db_create_time |
1277 s.BindString(5, GenerateCacheGUID()); // cache_guid | 1277 s.BindString(5, GenerateCacheGUID()); // cache_guid |
1278 // TODO(rlarocque, 124140): Remove this unused notification-state field. | 1278 // TODO(rlarocque, 124140): Remove this unused notification-state field. |
1279 s.BindBlob(6, NULL, 0); // notification_state | 1279 s.BindBlob(6, NULL, 0); // notification_state |
1280 s.BindBlob(7, NULL, 0); // bag_of_chips | 1280 s.BindBlob(7, NULL, 0); // bag_of_chips |
1281 if (!s.Run()) | 1281 if (!s.Run()) |
1282 return false; | 1282 return false; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 } | 1480 } |
1481 query.append(" ) "); | 1481 query.append(" ) "); |
1482 values.append(" )"); | 1482 values.append(" )"); |
1483 query.append(values); | 1483 query.append(values); |
1484 save_statement->Assign(db_->GetUniqueStatement( | 1484 save_statement->Assign(db_->GetUniqueStatement( |
1485 base::StringPrintf(query.c_str(), "metas").c_str())); | 1485 base::StringPrintf(query.c_str(), "metas").c_str())); |
1486 } | 1486 } |
1487 | 1487 |
1488 } // namespace syncable | 1488 } // namespace syncable |
1489 } // namespace syncer | 1489 } // namespace syncer |
OLD | NEW |