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

Unified Diff: chrome/browser/meta_table_helper.cc

Issue 18805: Correct sqlite wrapper behavior on systems where wchar_t is UTF-32, (Closed)
Patch Set: minor fixes Created 11 years, 11 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 | « chrome/browser/importer/firefox3_importer.cc ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/meta_table_helper.cc
diff --git a/chrome/browser/meta_table_helper.cc b/chrome/browser/meta_table_helper.cc
index 11fd5f551f8382f7d127ee5e73954aa305a2621e..6667197d4d76bb2cf55268c1ebc37af633b4ba87 100644
--- a/chrome/browser/meta_table_helper.cc
+++ b/chrome/browser/meta_table_helper.cc
@@ -53,7 +53,7 @@ bool MetaTableHelper::SetValue(const std::string& key,
SQLStatement s;
if (!PrepareSetStatement(&s, key))
return false;
- s.bind_text16(1, value.c_str());
+ s.bind_wstring(1, value);
return s.step() == SQLITE_DONE;
}
@@ -64,7 +64,7 @@ bool MetaTableHelper::GetValue(const std::string& key,
if (!PrepareGetStatement(&s, key))
return false;
- s.column_string16(0, value);
+ s.column_wstring(0, value);
return true;
}
« no previous file with comments | « chrome/browser/importer/firefox3_importer.cc ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698