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

Unified Diff: chrome/browser/ui/webui/about_ui.cc

Issue 2898033002: [TabManager] Move TabManager into chrome/browser/resource_coordinator. (Closed)
Patch Set: rebase Created 3 years, 7 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: chrome/browser/ui/webui/about_ui.cc
diff --git a/chrome/browser/ui/webui/about_ui.cc b/chrome/browser/ui/webui/about_ui.cc
index f3922f56d613c51e0fb37d7e47c0b815d8aef486..a81f27dbb0c2e90f0219e9093f2addba198eb2af 100644
--- a/chrome/browser/ui/webui/about_ui.cc
+++ b/chrome/browser/ui/webui/about_ui.cc
@@ -38,11 +38,11 @@
#include "chrome/browser/about_flags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/defaults.h"
-#include "chrome/browser/memory/tab_manager.h"
-#include "chrome/browser/memory/tab_stats.h"
#include "chrome/browser/net/predictor.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
+#include "chrome/browser/resource_coordinator/tab_manager.h"
+#include "chrome/browser/resource_coordinator/tab_stats.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/url_constants.h"
@@ -466,12 +466,13 @@ std::string BuildAboutDiscardsRunPage() {
}
std::vector<std::string> GetHtmlTabDescriptorsForDiscardPage() {
- memory::TabManager* tab_manager = g_browser_process->GetTabManager();
- memory::TabStatsList stats = tab_manager->GetTabStats();
+ resource_coordinator::TabManager* tab_manager =
+ g_browser_process->GetTabManager();
+ resource_coordinator::TabStatsList stats = tab_manager->GetTabStats();
std::vector<std::string> titles;
titles.reserve(stats.size());
- for (memory::TabStatsList::iterator it = stats.begin(); it != stats.end();
- ++it) {
+ for (resource_coordinator::TabStatsList::iterator it = stats.begin();
+ it != stats.end(); ++it) {
std::string str;
str.reserve(4096);
str += "<b>";
@@ -500,7 +501,8 @@ std::vector<std::string> GetHtmlTabDescriptorsForDiscardPage() {
std::string AboutDiscards(const std::string& path) {
std::string output;
int64_t web_content_id;
- memory::TabManager* tab_manager = g_browser_process->GetTabManager();
+ resource_coordinator::TabManager* tab_manager =
+ g_browser_process->GetTabManager();
std::vector<std::string> path_split = base::SplitString(
path, "/", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/test/BUILD.gn » ('j') | chrome/test/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698