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

Unified Diff: components/sync/syncable/directory_backing_store.cc

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/syncable/directory.cc ('k') | components/sync/syncable/directory_backing_store_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/directory_backing_store.cc
diff --git a/components/sync/syncable/directory_backing_store.cc b/components/sync/syncable/directory_backing_store.cc
index 02b3fd9090cab212ae876d07f41d8bf49ba003e0..94b32439ffead4f0af10327673dc77b901d4043d 100644
--- a/components/sync/syncable/directory_backing_store.cc
+++ b/components/sync/syncable/directory_backing_store.cc
@@ -124,7 +124,7 @@ void UnpackProtoFields(sql::Statement* statement,
}
// The caller owns the returned EntryKernel*. Assumes the statement currently
-// points to a valid row in the metas table. Returns NULL to indicate that
+// points to a valid row in the metas table. Returns null to indicate that
// it detected a corruption in the data on unpacking.
std::unique_ptr<EntryKernel> UnpackEntry(sql::Statement* statement,
int* total_specifics_copies) {
@@ -1213,7 +1213,7 @@ bool DirectoryBackingStore::MigrateVersion79To80() {
sql::Statement update(db_->GetUniqueStatement(
"UPDATE share_info SET bag_of_chips = ?"));
// An empty message is serialized to an empty string.
- update.BindBlob(0, NULL, 0);
+ update.BindBlob(0, nullptr, 0);
if (!update.Run())
return false;
SetVersion(80);
@@ -1510,7 +1510,7 @@ bool DirectoryBackingStore::CreateTables() {
s.BindString(1, dir_name_); // name
s.BindString(2, std::string()); // store_birthday
s.BindString(3, GenerateCacheGUID()); // cache_guid
- s.BindBlob(4, NULL, 0); // bag_of_chips
+ s.BindBlob(4, nullptr, 0); // bag_of_chips
if (!s.Run())
return false;
}
« no previous file with comments | « components/sync/syncable/directory.cc ('k') | components/sync/syncable/directory_backing_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698