| 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 45f60157489c323f5c539ae6d260f46782330046..b1976633014b46f05795feded46f43c38913269a 100644
|
| --- a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
|
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
|
| @@ -35,12 +35,12 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "modules/indexeddb/IDBDatabase.h"
|
| #include "modules/indexeddb/IDBDatabaseCallbacks.h"
|
| -#include "modules/indexeddb/IDBHistograms.h"
|
| #include "modules/indexeddb/IDBKey.h"
|
| #include "modules/indexeddb/IDBTracing.h"
|
| #include "modules/indexeddb/IndexedDBClient.h"
|
| #include "modules/indexeddb/WebIDBCallbacksImpl.h"
|
| #include "modules/indexeddb/WebIDBDatabaseCallbacksImpl.h"
|
| +#include "platform/Histogram.h"
|
| #include "platform/weborigin/DatabaseIdentifier.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
| #include "public/platform/Platform.h"
|
| @@ -103,7 +103,7 @@ IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name,
|
|
|
| IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState, const String& name, int64_t version, ExceptionState& exceptionState)
|
| {
|
| - Platform::current()->histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBOpenCall, IDBMethodsMax);
|
| + IDBDatabase::recordApiCallsHistogram(IDBOpenCall);
|
| ASSERT(version >= 1 || version == IDBDatabaseMetadata::NoIntVersion);
|
| if (!isContextValid(scriptState->executionContext()))
|
| return nullptr;
|
| @@ -134,7 +134,7 @@ IDBOpenDBRequest* IDBFactory::open(ScriptState* scriptState, const String& name,
|
| IDBOpenDBRequest* IDBFactory::deleteDatabase(ScriptState* scriptState, const String& name, ExceptionState& exceptionState)
|
| {
|
| IDB_TRACE("IDBFactory::deleteDatabase");
|
| - Platform::current()->histogramEnumeration("WebCore.IndexedDB.FrontEndAPICalls", IDBDeleteDatabaseCall, IDBMethodsMax);
|
| + IDBDatabase::recordApiCallsHistogram(IDBDeleteDatabaseCall);
|
| if (!isContextValid(scriptState->executionContext()))
|
| return nullptr;
|
| if (!scriptState->executionContext()->securityOrigin()->canAccessDatabase()) {
|
|
|