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

Unified Diff: content/child/indexed_db/webidbfactory_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 | « no previous file | content/child/storage_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/indexed_db/webidbfactory_impl.cc
diff --git a/content/child/indexed_db/webidbfactory_impl.cc b/content/child/indexed_db/webidbfactory_impl.cc
index fcb63121f822dfa080ca435c9a4a516f30d42aa3..770f1328c7a03b2fb492e72148ffab464a508049 100644
--- a/content/child/indexed_db/webidbfactory_impl.cc
+++ b/content/child/indexed_db/webidbfactory_impl.cc
@@ -5,8 +5,8 @@
#include "content/child/indexed_db/webidbfactory_impl.h"
#include "content/child/indexed_db/indexed_db_dispatcher.h"
+#include "content/child/storage_util.h"
#include "content/child/thread_safe_sender.h"
-#include "third_party/WebKit/public/platform/URLConversion.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/platform/WebString.h"
@@ -28,7 +28,7 @@ void WebIDBFactoryImpl::getDatabaseNames(WebIDBCallbacks* callbacks,
IndexedDBDispatcher* dispatcher =
IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
dispatcher->RequestIDBFactoryGetDatabaseNames(
- callbacks, blink::WebStringToGURL(origin.toString()));
+ callbacks, WebSecurityOriginToGURL(origin));
}
void WebIDBFactoryImpl::open(const WebString& name,
@@ -39,9 +39,10 @@ void WebIDBFactoryImpl::open(const WebString& name,
const WebSecurityOrigin& origin) {
IndexedDBDispatcher* dispatcher =
IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
+
dispatcher->RequestIDBFactoryOpen(name, version, transaction_id, callbacks,
database_callbacks,
- blink::WebStringToGURL(origin.toString()));
+ WebSecurityOriginToGURL(origin));
}
void WebIDBFactoryImpl::deleteDatabase(const WebString& name,
@@ -49,8 +50,8 @@ void WebIDBFactoryImpl::deleteDatabase(const WebString& name,
const WebSecurityOrigin& origin) {
IndexedDBDispatcher* dispatcher =
IndexedDBDispatcher::ThreadSpecificInstance(thread_safe_sender_.get());
- dispatcher->RequestIDBFactoryDeleteDatabase(
- name, callbacks, blink::WebStringToGURL(origin.toString()));
+ dispatcher->RequestIDBFactoryDeleteDatabase(name, callbacks,
+ WebSecurityOriginToGURL(origin));
}
} // namespace content
« no previous file with comments | « no previous file | content/child/storage_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698