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

Unified Diff: content/child/indexed_db/webidbfactory_impl.cc

Issue 2773823002: Use a two-part data format version in IndexedDB metadata. (Closed)
Patch Set: jsbell, cmumford Created 3 years, 8 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/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 1f8e887129cc2d312995b4bbf43ce860ca5fd10f..1897d91db8423d75969cf945bc329e20313cbaf9 100644
--- a/content/child/indexed_db/webidbfactory_impl.cc
+++ b/content/child/indexed_db/webidbfactory_impl.cc
@@ -8,10 +8,12 @@
#include "content/child/indexed_db/indexed_db_callbacks_impl.h"
#include "content/child/indexed_db/indexed_db_database_callbacks_impl.h"
#include "content/child/storage_util.h"
+#include "content/common/indexed_db/indexed_db_data_format_version.h"
#include "ipc/ipc_sync_channel.h"
#include "mojo/public/cpp/bindings/strong_associated_binding.h"
#include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
#include "third_party/WebKit/public/platform/WebString.h"
+#include "third_party/WebKit/public/web/WebSerializedScriptValueVersion.h"
using blink::WebIDBCallbacks;
using blink::WebIDBDatabase;
@@ -116,8 +118,13 @@ WebIDBFactoryImpl::IOThreadHelper::IOThreadHelper(
WebIDBFactoryImpl::IOThreadHelper::~IOThreadHelper() {}
FactoryAssociatedPtr& WebIDBFactoryImpl::IOThreadHelper::GetService() {
- if (!service_)
+ if (!service_) {
sync_message_filter_->GetRemoteAssociatedInterface(&service_);
+ DCHECK(service_);
+ auto version = blink::WebSerializedScriptValueVersion::current();
+ service_->Configure(
+ IndexedDBDataFormatVersion(version.v8Version, version.blinkVersion));
+ }
return service_;
}

Powered by Google App Engine
This is Rietveld 408576698