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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1760673003: Cache API: Pass origin to platform, rather than DatabaseIdentifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: content/renderer/renderer_blink_platform_impl.cc
diff --git a/content/renderer/renderer_blink_platform_impl.cc b/content/renderer/renderer_blink_platform_impl.cc
index 5ef967ff13781964c738c093bb290e854658fc53..10761234ff903c9a7a7f277b288aa12e1cf6fd16 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -430,9 +430,8 @@ WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() {
//------------------------------------------------------------------------------
blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage(
- const WebString& origin_identifier) {
- const GURL origin =
- storage::GetOriginFromIdentifier(origin_identifier.utf8());
+ const blink::WebSecurityOrigin& security_origin) {
+ const GURL origin = blink::WebStringToGURL(security_origin.toString());
jsbell 2016/03/02 19:52:25 It looks like this WebSecurityOrigin->WebString->G
Mike West 2016/03/02 20:58:39 If you make `origin` a `url::Origin`, you'll get t
return new WebServiceWorkerCacheStorageImpl(thread_safe_sender_.get(),
origin);
}
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | third_party/WebKit/Source/modules/cachestorage/GlobalCacheStorage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698