| Index: chrome/browser/ui/webui/chrome_web_ui.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/chrome_web_ui.cc (revision 116011)
|
| +++ chrome/browser/ui/webui/chrome_web_ui.cc (working copy)
|
| @@ -8,12 +8,14 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "content/browser/renderer_host/render_view_host.h"
|
| -#include "content/browser/tab_contents/tab_contents.h"
|
| +#include "content/public/browser/web_contents.h"
|
|
|
| #if defined(TOOLKIT_VIEWS)
|
| #include "ui/views/widget/widget.h"
|
| #endif
|
|
|
| +using content::WebContents;
|
| +
|
| namespace {
|
|
|
| // If true, overrides IsMoreWebUI flag.
|
| @@ -21,7 +23,7 @@
|
|
|
| } // namespace
|
|
|
| -ChromeWebUI::ChromeWebUI(TabContents* contents)
|
| +ChromeWebUI::ChromeWebUI(WebContents* contents)
|
| : WebUI(contents) {
|
| }
|
|
|
| @@ -29,7 +31,7 @@
|
| }
|
|
|
| Profile* ChromeWebUI::GetProfile() const {
|
| - return Profile::FromBrowserContext(tab_contents()->GetBrowserContext());
|
| + return Profile::FromBrowserContext(web_contents()->GetBrowserContext());
|
| }
|
|
|
| bool ChromeWebUI::CanShowBookmarkBar() const {
|
|
|