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

Unified Diff: chrome/browser/ui/webui/uber/uber_ui.cc

Issue 9097005: Move WebUIFactory into content/public/browser and make it use WebContents instead of TabContents.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 11 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 | « chrome/browser/ui/webui/test_chrome_web_ui_factory.cc ('k') | content/browser/browsing_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/uber/uber_ui.cc
===================================================================
--- chrome/browser/ui/webui/uber/uber_ui.cc (revision 116777)
+++ chrome/browser/ui/webui/uber/uber_ui.cc (working copy)
@@ -13,7 +13,7 @@
#include "chrome/browser/ui/webui/extensions/extensions_ui.h"
#include "chrome/browser/ui/webui/options2/options_ui2.h"
#include "chrome/common/url_constants.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "grit/browser_resources.h"
#include "grit/chromium_strings.h"
#include "grit/generated_resources.h"
@@ -59,7 +59,7 @@
void UberUI::RegisterSubpage(const std::string& page_url) {
WebUI* web_ui = ChromeWebUIFactory::GetInstance()->CreateWebUIForURL(
- static_cast<TabContents*>(web_contents_), GURL(page_url));
+ web_contents_, GURL(page_url));
web_ui->set_frame_xpath("//iframe[@src='" + page_url + "']");
sub_uis_[page_url] = web_ui;
« no previous file with comments | « chrome/browser/ui/webui/test_chrome_web_ui_factory.cc ('k') | content/browser/browsing_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698