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

Unified Diff: chrome/browser/sessions/tab_loader_unittest.cc

Issue 2741883004: Remove MemoryCoordinatorProxy::SetCurrentMemoryStateForTesting (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « base/memory/memory_coordinator_proxy.cc ('k') | content/browser/memory/memory_coordinator_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/tab_loader_unittest.cc
diff --git a/chrome/browser/sessions/tab_loader_unittest.cc b/chrome/browser/sessions/tab_loader_unittest.cc
index 3f7aae7be0eabfa0b9cd975a80e40604e5265506..90232bf8bf76f5688dcf0c98a469aee729619152 100644
--- a/chrome/browser/sessions/tab_loader_unittest.cc
+++ b/chrome/browser/sessions/tab_loader_unittest.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/sessions/tab_loader.h"
-#include "base/memory/memory_coordinator_proxy.h"
+#include "base/memory/memory_coordinator_client_registry.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
@@ -62,7 +62,7 @@ class TabLoaderTest : public testing::Test {
TEST_F(TabLoaderTest, MAYBE_OnMemoryStateChange) {
TabLoader::RestoreTabs(restored_tabs_, base::TimeTicks());
EXPECT_TRUE(TabLoader::shared_tab_loader_->loading_enabled_);
- base::MemoryCoordinatorProxy::GetInstance()->SetCurrentMemoryStateForTesting(
+ base::MemoryCoordinatorClientRegistry::GetInstance()->Notify(
base::MemoryState::THROTTLED);
// ObserverListThreadsafe is used to notify the state to clients, so running
// the loop is necessary here.
« no previous file with comments | « base/memory/memory_coordinator_proxy.cc ('k') | content/browser/memory/memory_coordinator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698