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

Unified Diff: sql/statement.cc

Issue 9384004: Fix Android build. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/statement.cc
diff --git a/sql/statement.cc b/sql/statement.cc
index 4fa3459a018766c7f9980d5b86b69329c67a3e5c..7bc6adf826a74d4408eb08e163a54312b98e9177 100644
--- a/sql/statement.cc
+++ b/sql/statement.cc
@@ -4,9 +4,8 @@
#include "sql/statement.h"
-#include <algorithm>
-
#include "base/logging.h"
+#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "third_party/sqlite/sqlite3.h"
@@ -159,8 +158,7 @@ ColType Statement::ColumnType(int col) const {
ColType Statement::DeclaredColumnType(int col) const {
std::string column_type(sqlite3_column_decltype(ref_->stmt(), col));
- std::transform(column_type.begin(), column_type.end(), column_type.begin(),
- ::tolower);
+ StringToLowerASCII(&column_type);
if (column_type == "integer")
return COLUMN_TYPE_INTEGER;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698