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

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

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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 | « chrome/browser/ui/webui/sync_setup_handler2.cc ('k') | chrome/browser/ui/webui/task_manager_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/task_manager_handler.cc
===================================================================
--- chrome/browser/ui/webui/task_manager_handler.cc (revision 116011)
+++ chrome/browser/ui/webui/task_manager_handler.cc (working copy)
@@ -15,9 +15,10 @@
#include "chrome/browser/ui/webui/web_ui_util.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
+#include "content/public/browser/web_contents.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "webkit/glue/webpreferences.h"
@@ -402,7 +403,7 @@
}
void TaskManagerHandler::OpenAboutMemory(const ListValue* indexes) {
- RenderViewHost* rvh = web_ui()->tab_contents()->GetRenderViewHost();
+ RenderViewHost* rvh = web_ui()->web_contents()->GetRenderViewHost();
if (rvh && rvh->delegate()) {
WebPreferences webkit_prefs = rvh->delegate()->GetWebkitPrefs();
webkit_prefs.allow_scripts_to_close_windows = true;
@@ -417,7 +418,7 @@
// TaskManagerHandler, private: -----------------------------------------------
bool TaskManagerHandler::is_alive() {
- return web_ui()->tab_contents()->GetRenderViewHost() != NULL;
+ return web_ui()->web_contents()->GetRenderViewHost() != NULL;
}
void TaskManagerHandler::UpdateResourceGroupTable(int start, int length) {
« no previous file with comments | « chrome/browser/ui/webui/sync_setup_handler2.cc ('k') | chrome/browser/ui/webui/task_manager_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698