• Gyuyoung Kim's avatar
    Inline static Create() factory functions from renderer/modules · ad7086de
    Gyuyoung Kim authored
    This CL removes unnecessary Create() factory functions in
    //third_partyb/blink/renderer/modules only when it
    meets the policy of removing Create() so that we support
    only one of Create() methods or public constructors in a class.
    Then, this CL makes all callers use MakeGarbageCollected<Foo>
    instead.
    
    This CL removes below Create() functions,
      - BackgroundFetchManager::Create
      - PeriodicSyncManager::Create
      - SyncManager::Create
      - IDBAny::CreateUndefined()
      - IDBAny::CreateNull()
      - PaymentManager::Create
      - WebGLVertexArrayObjectOES::Create
      - WebGLCompressedTextureASTC::Create
      - WebGLDrawInstancedBaseVertexBaseInstance::Create
    
    Bug: 939691
    Change-Id: Idf930e7ba073b110c90803e2ba509695480d12bd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980527Reviewed-by: default avatarKai Ninomiya <kainino@chromium.org>
    Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
    Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
    Cr-Commit-Position: refs/heads/master@{#727295}
    ad7086de
idb_any.h 3.98 KB