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

Unified Diff: components/webdata/common/web_database_migration_unittest.cc

Issue 296593003: Make various string_util functions take StringPieces instead of char[]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resync Created 6 years, 7 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: components/webdata/common/web_database_migration_unittest.cc
diff --git a/components/webdata/common/web_database_migration_unittest.cc b/components/webdata/common/web_database_migration_unittest.cc
index b0925bc4d0074214756a3db3f60c58f028e608c6..aa3d0dd65a40023b66b282801a99afcdab169ea8 100644
--- a/components/webdata/common/web_database_migration_unittest.cc
+++ b/components/webdata/common/web_database_migration_unittest.cc
@@ -157,10 +157,9 @@ void CheckNoBackupData(const sql::Connection& connection,
}
std::string RemoveQuotes(const std::string& has_quotes) {
- // SQLite quotes: http://www.sqlite.org/lang_keywords.html
- static const char kQuotes[] = "\"[]`";
std::string no_quotes;
- base::RemoveChars(has_quotes, kQuotes, &no_quotes);
+ // SQLite quotes: http://www.sqlite.org/lang_keywords.html
+ base::RemoveChars(has_quotes, "\"[]`", &no_quotes);
return no_quotes;
}
« no previous file with comments | « components/cloud_devices/common/cloud_devices_urls.cc ('k') | extensions/common/permissions/socket_permission_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698