summaryrefslogtreecommitdiffstats
path: root/webkit/database/database_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/database/database_util.cc')
-rw-r--r--webkit/database/database_util.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/database/database_util.cc b/webkit/database/database_util.cc
index 8002d81..2886095 100644
--- a/webkit/database/database_util.cc
+++ b/webkit/database/database_util.cc
@@ -71,4 +71,11 @@ string16 DatabaseUtil::GetOriginIdentifier(const GURL& url) {
return WebKit::WebSecurityOrigin::createFromString(spec).databaseIdentifier();
}
+GURL DatabaseUtil::GetOriginFromIdentifier(const string16& origin_identifier) {
+ GURL origin(WebKit::WebSecurityOrigin::createFromDatabaseIdentifier(
+ origin_identifier).toString());
+ DCHECK(origin == origin.GetOrigin());
+ return origin;
+}
+
} // namespace webkit_database