Commit 9bf77c62 authored by Johann's avatar Johann Committed by Commit Bot

heap mojo: mark single arg constructors explicit

Also iwyu <utility>. Clears git cl lint warnings.

Change-Id: I039424a37b54f7b6358232d6de5ed1836fa1ef4a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2098162Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarKeishi Hattori <keishi@chromium.org>
Reviewed-by: default avatarKouhei Ueno <kouhei@chromium.org>
Commit-Queue: Johann Koenig <johannkoenig@google.com>
Cr-Commit-Position: refs/heads/master@{#749537}
parent 4d9eb336
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_MOJO_HEAP_MOJO_REMOTE_H_ #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_MOJO_HEAP_MOJO_REMOTE_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_MOJO_HEAP_MOJO_REMOTE_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_MOJO_HEAP_MOJO_REMOTE_H_
#include <utility>
#include "mojo/public/cpp/bindings/remote.h" #include "mojo/public/cpp/bindings/remote.h"
#include "third_party/blink/renderer/platform/context_lifecycle_observer.h" #include "third_party/blink/renderer/platform/context_lifecycle_observer.h"
#include "third_party/blink/renderer/platform/heap/heap.h" #include "third_party/blink/renderer/platform/heap/heap.h"
...@@ -22,7 +24,7 @@ class HeapMojoRemote { ...@@ -22,7 +24,7 @@ class HeapMojoRemote {
DISALLOW_NEW(); DISALLOW_NEW();
public: public:
HeapMojoRemote(ContextLifecycleNotifier* notifier) explicit HeapMojoRemote(ContextLifecycleNotifier* notifier)
: wrapper_(MakeGarbageCollected<Wrapper>(notifier)) {} : wrapper_(MakeGarbageCollected<Wrapper>(notifier)) {}
// Methods to redirect to mojo::Remote. // Methods to redirect to mojo::Remote.
...@@ -57,7 +59,7 @@ class HeapMojoRemote { ...@@ -57,7 +59,7 @@ class HeapMojoRemote {
USING_GARBAGE_COLLECTED_MIXIN(Wrapper); USING_GARBAGE_COLLECTED_MIXIN(Wrapper);
public: public:
Wrapper(ContextLifecycleNotifier* notifier) { explicit Wrapper(ContextLifecycleNotifier* notifier) {
SetContextLifecycleNotifier(notifier); SetContextLifecycleNotifier(notifier);
} }
......
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