Track down errno for SQLITE_IOERR_WRITE is happening.

Adds a log line to try to track down an SQLite error happening on the
waterfall.  Should only be emitted in case of a bad thing happening,
like file-descriptors closing out from under us, so I can't think of
why this would ever be hit for real.

BUG=56427
TEST=no effect

Attempt to test extended error codes.  Fail.

Review URL: http://codereview.chromium.org/3433016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60125 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/app/sql/connection.h b/app/sql/connection.h
index b89fb1a1..0bd28caa 100644
--- a/app/sql/connection.h
+++ b/app/sql/connection.h
@@ -261,6 +261,10 @@
   // Returns the error code associated with the last sqlite operation.
   int GetErrorCode() const;
 
+  // Returns the errno associated with GetErrorCode().  See
+  // SQLITE_LAST_ERRNO in SQLite documentation.
+  int GetLastErrno() const;
+
   // Returns a pointer to a statically allocated string associated with the
   // last sqlite operation.
   const char* GetErrorMessage() const;