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

Unified Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 1810193002: Fix effective Origin URLs for IDB + Cache for file:/// pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Factor out origin->GURL conversion helper Created 4 years, 9 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 | « content/content_child.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2de292d848d739fdf503749f8688b0869fbddc17..9409b902e8994ac06797eca3c69e8e7c9538a626 100644
--- a/content/renderer/renderer_blink_platform_impl.cc
+++ b/content/renderer/renderer_blink_platform_impl.cc
@@ -33,6 +33,7 @@
#include "content/child/quota_dispatcher.h"
#include "content/child/quota_message_filter.h"
#include "content/child/simple_webmimeregistry_impl.h"
+#include "content/child/storage_util.h"
#include "content/child/thread_safe_sender.h"
#include "content/child/web_database_observer_impl.h"
#include "content/child/web_url_loader_impl.h"
@@ -436,9 +437,8 @@ WebIDBFactory* RendererBlinkPlatformImpl::idbFactory() {
blink::WebServiceWorkerCacheStorage* RendererBlinkPlatformImpl::cacheStorage(
const blink::WebSecurityOrigin& security_origin) {
- const GURL origin = blink::WebStringToGURL(security_origin.toString());
- return new WebServiceWorkerCacheStorageImpl(thread_safe_sender_.get(),
- origin);
+ return new WebServiceWorkerCacheStorageImpl(
+ thread_safe_sender_.get(), WebSecurityOriginToGURL(security_origin));
}
//------------------------------------------------------------------------------
« no previous file with comments | « content/content_child.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698