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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemPosix.cpp

Issue 2395473002: reflow comments in modules/webdatabase (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemPosix.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemPosix.cpp b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemPosix.cpp
index c25f9401e804e27ea5cd132ddf106e512363c777..77e7b6d904438cd7e2313f94737697bfbb951426 100644
--- a/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemPosix.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/sqlite/SQLiteFileSystemPosix.cpp
@@ -178,7 +178,8 @@ int chromiumOpenInternal(sqlite3_vfs* vfs,
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
- // The mask 0x00007F00 gives us the 7 bits that determine the type of the file SQLite is trying to open.
+ // The mask 0x00007F00 gives us the 7 bits that determine the type of the file
+ // SQLite is trying to open.
int fileType = desiredFlags & 0x00007F00;
int noLock = (fileType != SQLITE_OPEN_MAIN_DB);
sqlite3_vfs* wrappedVfs = static_cast<sqlite3_vfs*>(vfs->pAppData);
@@ -197,16 +198,17 @@ int chromiumOpen(sqlite3_vfs* vfs,
if (!wrappedFile)
return SQLITE_NOMEM;
- // Make a local copy of the file name. SQLite's os_unix.c appears to be written to allow caching the pointer passed
- // in to this function, but that seems brittle.
+ // Make a local copy of the file name. SQLite's os_unix.c appears to be
+ // written to allow caching the pointer passed in to this function, but that
+ // seems brittle.
char* wrappedFileName = sqlite3_mprintf("%s", fileName);
if (!wrappedFileName) {
sqlite3_free(wrappedFile);
return SQLITE_NOMEM;
}
- // SQLite's unixOpen() makes assumptions about the structure of |fileName|. Our local copy may not answer those
- // assumptions correctly.
+ // SQLite's unixOpen() makes assumptions about the structure of |fileName|.
+ // Our local copy may not answer those assumptions correctly.
int rc =
chromiumOpenInternal(vfs, fileName, wrappedFile, desiredFlags, usedFlags);
if (rc != SQLITE_OK) {
@@ -325,7 +327,8 @@ int chromiumCurrentTime(sqlite3_vfs* vfs, double* prNow) {
}
int chromiumGetLastError(sqlite3_vfs* vfs, int e, char* s) {
- // xGetLastError() has never been used by SQLite. The implementation in os_win.c indicates this is a reasonable implementation.
+ // xGetLastError() has never been used by SQLite. The implementation in
+ // os_win.c indicates this is a reasonable implementation.
*s = '\0';
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698