| Index: third_party/WebKit/Source/core/WebFactory.cpp
|
| diff --git a/third_party/WebKit/Source/core/WebFactory.cpp b/third_party/WebKit/Source/core/WebFactory.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d7d3199fdab8526018f797dbe6f9876534fc8d08
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/core/WebFactory.cpp
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "core/WebFactory.h"
|
| +#include "platform/wtf/Assertions.h"
|
| +
|
| +namespace blink {
|
| +
|
| +WebFactory* WebFactory::factory_instance_ = nullptr;
|
| +
|
| +WebFactory& WebFactory::GetInstance() {
|
| + DCHECK(factory_instance_);
|
| + return *factory_instance_;
|
| +}
|
| +
|
| +void WebFactory::SetInstance(WebFactory* factory) {
|
| + DCHECK_EQ(nullptr, factory_instance_);
|
| + DCHECK(factory);
|
| + factory_instance_ = factory;
|
| +}
|
| +
|
| +} // namespace blink
|
|
|