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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 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
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.cpp ('k') | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBFactory.cpp
diff --git a/Source/modules/indexeddb/IDBFactory.cpp b/Source/modules/indexeddb/IDBFactory.cpp
index 0d73c058a362c4d689a99c545ce530df1b4d342d..089e3eafa2e4d38ed21ee2c4201df65b6d7bbd79 100644
--- a/Source/modules/indexeddb/IDBFactory.cpp
+++ b/Source/modules/indexeddb/IDBFactory.cpp
@@ -76,10 +76,10 @@ PassRefPtr<IDBRequest> IDBFactory::getDatabaseNames(ExecutionContext* context, E
{
IDB_TRACE("IDBFactory::getDatabaseNames");
if (!isContextValid(context))
- return 0;
+ return nullptr;
if (!context->securityOrigin()->canAccessDatabase()) {
exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
- return 0;
+ return nullptr;
}
RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::createNull(), 0);
@@ -98,7 +98,7 @@ PassRefPtr<IDBOpenDBRequest> IDBFactory::open(ExecutionContext* context, const S
IDB_TRACE("IDBFactory::open");
if (!version) {
exceptionState.throwTypeError("The version provided must not be 0.");
- return 0;
+ return nullptr;
}
return openInternal(context, name, version, exceptionState);
}
@@ -109,13 +109,13 @@ PassRefPtr<IDBOpenDBRequest> IDBFactory::openInternal(ExecutionContext* context,
ASSERT(version >= 1 || version == IDBDatabaseMetadata::NoIntVersion);
if (name.isNull()) {
exceptionState.throwTypeError("The name provided must not be empty.");
- return 0;
+ return nullptr;
}
if (!isContextValid(context))
- return 0;
+ return nullptr;
if (!context->securityOrigin()->canAccessDatabase()) {
exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
- return 0;
+ return nullptr;
}
RefPtr<IDBDatabaseCallbacks> databaseCallbacks = IDBDatabaseCallbacks::create();
@@ -143,16 +143,16 @@ PassRefPtr<IDBOpenDBRequest> IDBFactory::deleteDatabase(ExecutionContext* contex
blink::Platform::current()->histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBDeleteDatabaseCall, IDBMethodsMax);
if (name.isNull()) {
exceptionState.throwTypeError("The name provided must not be empty.");
- return 0;
+ return nullptr;
}
if (!isContextValid(context))
- return 0;
+ return nullptr;
if (!context->securityOrigin()->canAccessDatabase()) {
exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
- return 0;
+ return nullptr;
}
- RefPtr<IDBOpenDBRequest> request = IDBOpenDBRequest::create(context, 0, 0, IDBDatabaseMetadata::DefaultIntVersion);
+ RefPtr<IDBOpenDBRequest> request = IDBOpenDBRequest::create(context, nullptr, 0, IDBDatabaseMetadata::DefaultIntVersion);
if (!m_permissionClient->allowIndexedDB(context, name)) {
request->onError(DOMError::create(UnknownError, permissionDeniedErrorMessage));
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.cpp ('k') | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698