summaryrefslogtreecommitdiffstats
path: root/content/child/database_util.cc
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 06:36:05 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-18 06:36:05 +0000
commit5e30159213afce33bd8c77f055af07f0eb97f76b (patch)
treed2919c114d7b2420c210e07dfe03b9e573579116 /content/child/database_util.cc
parent5380451c17882b56cf0b5fe7906201ee05abbffd (diff)
downloadchromium_src-5e30159213afce33bd8c77f055af07f0eb97f76b.zip
chromium_src-5e30159213afce33bd8c77f055af07f0eb97f76b.tar.gz
chromium_src-5e30159213afce33bd8c77f055af07f0eb97f76b.tar.bz2
Origin identifiers are always ASCII, store as std::string
Origin identifiers are computed by a process that always produces ASCII strings. There's no reason to store origin identifiers as base::string16 or to do unicode conversions for them. Keeping them stored in std::string is a slight memory and performance improvement and avoids lots of sketchy conversions when converting to FilePaths. This patch still involves a number of conversions (or things that look like conversions) at the WebKit API boundary. BUG=243095 Review URL: https://chromiumcodereview.appspot.com/16965018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/child/database_util.cc')
-rw-r--r--content/child/database_util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/content/child/database_util.cc b/content/child/database_util.cc
index 61ec65b..c63c4e8 100644
--- a/content/child/database_util.cc
+++ b/content/child/database_util.cc
@@ -59,7 +59,8 @@ long long DatabaseUtil::DatabaseGetSpaceAvailable(
int64 rv = 0LL;
scoped_refptr<IPC::SyncMessageFilter> filter(
ChildThread::current()->sync_message_filter());
- filter->Send(new DatabaseHostMsg_GetSpaceAvailable(origin_identifier, &rv));
+ filter->Send(new DatabaseHostMsg_GetSpaceAvailable(origin_identifier.utf8(),
+ &rv));
return rv;
}