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

Side by Side Diff: sync/syncable/directory_backing_store.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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
« no previous file with comments | « sync/notifier/sync_system_resources_unittest.cc ('k') | sync/syncable/model_type.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « sync/notifier/sync_system_resources_unittest.cc ('k') | sync/syncable/model_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698