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

Unified Diff: chrome/browser/ui/webui/downloads_dom_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/devtools_ui.cc ('k') | chrome/browser/ui/webui/downloads_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/downloads_dom_handler.cc
===================================================================
--- chrome/browser/ui/webui/downloads_dom_handler.cc (revision 116011)
+++ chrome/browser/ui/webui/downloads_dom_handler.cc (working copy)
@@ -29,9 +29,9 @@
#include "chrome/browser/ui/webui/fileicon_source.h"
#include "chrome/browser/ui/webui/fileicon_source_chromeos.h"
#include "chrome/common/url_constants.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/download_item.h"
#include "content/public/browser/user_metrics.h"
+#include "content/public/browser/web_contents.h"
#include "grit/generated_resources.h"
#include "ui/gfx/image/image.h"
@@ -289,7 +289,7 @@
IconManager* im = g_browser_process->icon_manager();
gfx::Image* icon = im->LookupIcon(file->GetUserVerifiedFilePath(),
IconLoader::NORMAL);
- gfx::NativeView view = web_ui()->tab_contents()->GetNativeView();
+ gfx::NativeView view = web_ui()->web_contents()->GetNativeView();
{
// Enable nested tasks during DnD, while |DragDownload()| blocks.
MessageLoop::ScopedNestableTaskAllower allower(MessageLoop::current());
« no previous file with comments | « chrome/browser/ui/webui/devtools_ui.cc ('k') | chrome/browser/ui/webui/downloads_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698