Commit 0ddc2ee9 authored by Eve Martin-Jones's avatar Eve Martin-Jones Committed by Commit Bot

Replace WTF_MAKE_NONCOPYABLE with DISALLOW_COPY_AND_ASSIGN in core/leak_detector/*

This change is for files in the path
//third_party/WebKit/Source/core/leak_detector/.

Added the include for base/macros.h where needed and moved the macro to the
end of the class as per the code guidelines enforced by lint.

This CL introduces no logic changes.

Bug: 565932
Change-Id: If017db1b5666219af6f95ac38aaeced49f657f69
Reviewed-on: https://chromium-review.googlesource.com/813434Reviewed-by: default avatarSasha Morrissey <sashab@chromium.org>
Commit-Queue: Eve Martin-Jones <evem@chromium.org>
Cr-Commit-Position: refs/heads/master@{#522357}
parent 2e876a33
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "public/web/WebLeakDetector.h" #include "public/web/WebLeakDetector.h"
#include "base/macros.h"
#include "core/frame/WebLocalFrameImpl.h" #include "core/frame/WebLocalFrameImpl.h"
#include "core/leak_detector/BlinkLeakDetector.h" #include "core/leak_detector/BlinkLeakDetector.h"
#include "core/leak_detector/BlinkLeakDetectorClient.h" #include "core/leak_detector/BlinkLeakDetectorClient.h"
...@@ -42,7 +43,6 @@ namespace { ...@@ -42,7 +43,6 @@ namespace {
class WebLeakDetectorImpl final : public WebLeakDetector, class WebLeakDetectorImpl final : public WebLeakDetector,
public BlinkLeakDetectorClient { public BlinkLeakDetectorClient {
WTF_MAKE_NONCOPYABLE(WebLeakDetectorImpl);
public: public:
explicit WebLeakDetectorImpl(WebLeakDetectorClient* client) explicit WebLeakDetectorImpl(WebLeakDetectorClient* client)
...@@ -61,6 +61,7 @@ class WebLeakDetectorImpl final : public WebLeakDetector, ...@@ -61,6 +61,7 @@ class WebLeakDetectorImpl final : public WebLeakDetector,
private: private:
WebLeakDetectorClient* client_; WebLeakDetectorClient* client_;
std::unique_ptr<BlinkLeakDetector> detector_; std::unique_ptr<BlinkLeakDetector> detector_;
DISALLOW_COPY_AND_ASSIGN(WebLeakDetectorImpl);
}; };
void WebLeakDetectorImpl::PrepareForLeakDetection(WebFrame* frame) { void WebLeakDetectorImpl::PrepareForLeakDetection(WebFrame* frame) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment