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

Unified Diff: content/browser/memory/memory_coordinator.cc

Issue 2321313002: Move components/memory_coordinator -> content/ (Closed)
Patch Set: rebase etc Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/memory/memory_coordinator.cc
diff --git a/components/memory_coordinator/browser/memory_coordinator.cc b/content/browser/memory/memory_coordinator.cc
similarity index 94%
rename from components/memory_coordinator/browser/memory_coordinator.cc
rename to content/browser/memory/memory_coordinator.cc
index e0f5ff40d618d6168cc47556a4947ffd65c2d93b..52ee2ece71f8a47def79edd5401bd9c791680b49 100644
--- a/components/memory_coordinator/browser/memory_coordinator.cc
+++ b/content/browser/memory/memory_coordinator.cc
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/memory_coordinator/browser/memory_coordinator.h"
+#include "content/browser/memory/memory_coordinator.h"
#include "base/memory/memory_coordinator_client_registry.h"
-#include "components/memory_coordinator/common/memory_coordinator_features.h"
+#include "content/public/common/content_features.h"
-namespace memory_coordinator {
+namespace content {
// The implementation of MemoryCoordinatorHandle. See memory_coordinator.mojom
// for the role of this class.
@@ -35,7 +35,7 @@ class MemoryCoordinatorHandleImpl : public mojom::MemoryCoordinatorHandle {
// static
MemoryCoordinator* MemoryCoordinator::GetInstance() {
- if (!IsEnabled())
+ if (!base::FeatureList::IsEnabled(features::kMemoryCoordinator))
return nullptr;
return base::Singleton<MemoryCoordinator,
base::LeakySingletonTraits<MemoryCoordinator>>::get();
@@ -122,4 +122,4 @@ MemoryCoordinator::ChildInfo::ChildInfo(const ChildInfo& rhs) {
MemoryCoordinator::ChildInfo::~ChildInfo() {}
-} // namespace memory_coordinator
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698