Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: content/child/memory/child_memory_coordinator_impl.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/memory/child_memory_coordinator_impl.h" 5 #include "content/child/memory/child_memory_coordinator_impl.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/memory_coordinator_client_registry.h" 8 #include "base/memory/memory_coordinator_client_registry.h"
9 #include "base/memory/ptr_util.h"
9 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
10 #include "base/trace_event/trace_event.h" 11 #include "base/trace_event/trace_event.h"
11 12
12 namespace content { 13 namespace content {
13 14
14 namespace { 15 namespace {
15 16
16 base::LazyInstance<base::Lock>::Leaky g_lock = LAZY_INSTANCE_INITIALIZER; 17 base::LazyInstance<base::Lock>::Leaky g_lock = LAZY_INSTANCE_INITIALIZER;
17 ChildMemoryCoordinatorImpl* g_child_memory_coordinator = nullptr; 18 ChildMemoryCoordinatorImpl* g_child_memory_coordinator = nullptr;
18 19
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #if !defined(OS_ANDROID) 69 #if !defined(OS_ANDROID)
69 std::unique_ptr<ChildMemoryCoordinatorImpl> CreateChildMemoryCoordinator( 70 std::unique_ptr<ChildMemoryCoordinatorImpl> CreateChildMemoryCoordinator(
70 mojom::MemoryCoordinatorHandlePtr parent, 71 mojom::MemoryCoordinatorHandlePtr parent,
71 ChildMemoryCoordinatorDelegate* delegate) { 72 ChildMemoryCoordinatorDelegate* delegate) {
72 return base::WrapUnique( 73 return base::WrapUnique(
73 new ChildMemoryCoordinatorImpl(std::move(parent), delegate)); 74 new ChildMemoryCoordinatorImpl(std::move(parent), delegate));
74 } 75 }
75 #endif 76 #endif
76 77
77 } // namespace content 78 } // namespace content
OLDNEW
« no previous file with comments | « content/child/indexed_db/webidbfactory_impl.cc ('k') | content/child/memory/child_memory_coordinator_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698