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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp

Issue 1706413002: Indexed DB: Rename "int version" to "version" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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: third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
index b1976633014b46f05795feded46f43c38913269a..eebcf63c88c34fac4dd28851668a4608ff9ed6e5 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
@@ -104,7 +104,7 @@ IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name,
IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState, const String& name, int64_t version, ExceptionState& exceptionState)
{
IDBDatabase::recordApiCallsHistogram(IDBOpenCall);
- ASSERT(version >= 1 || version == IDBDatabaseMetadata::NoIntVersion);
+ ASSERT(version >= 1 || version == IDBDatabaseMetadata::NoVersion);
if (!isContextValid(scriptState->executionContext()))
return nullptr;
if (!scriptState->executionContext()->securityOrigin()->canAccessDatabase()) {
@@ -128,7 +128,7 @@ IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState, const Strin
IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name, ExceptionState& exceptionState)
{
IDB_TRACE("IDBFactory::open");
- return openInternal(scriptState, name, IDBDatabaseMetadata::NoIntVersion, exceptionState);
+ return openInternal(scriptState, name, IDBDatabaseMetadata::NoVersion, exceptionState);
}
IDBOpenDBRequest* IDBFactory::deleteDatabase(ScriptState* scriptState, const String& name, ExceptionState& exceptionState)
@@ -142,7 +142,7 @@ IDBOpenDBRequest* IDBFactory::deleteDatabase(ScriptState* scriptState, const Str
return nullptr;
}
- IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState, nullptr, 0, IDBDatabaseMetadata::DefaultIntVersion);
+ IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState, nullptr, 0, IDBDatabaseMetadata::DefaultVersion);
if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), name)) {
request->onError(DOMException::create(UnknownError, permissionDeniedErrorMessage));
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp ('k') | third_party/WebKit/Source/modules/indexeddb/IDBMetadata.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698