| Index: chrome/browser/ui/webui/chrome_web_ui.cc
|
| diff --git a/chrome/browser/ui/webui/chrome_web_ui.cc b/chrome/browser/ui/webui/chrome_web_ui.cc
|
| index 885711ce9fd6feee87c9969a998da0b585fbcf4e..839dab34d3ecb896e9076facac35c6c6d5b6659f 100644
|
| --- a/chrome/browser/ui/webui/chrome_web_ui.cc
|
| +++ b/chrome/browser/ui/webui/chrome_web_ui.cc
|
| @@ -7,6 +7,12 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "content/browser/tab_contents/tab_contents.h"
|
|
|
| +namespace {
|
| +
|
| +// Set to true if we prefer using webui implementations over native.
|
| +bool use_more_webui = false;
|
| +}
|
| +
|
| ChromeWebUI::ChromeWebUI(TabContents* contents)
|
| : WebUI(contents),
|
| force_bookmark_bar_visible_(false) {
|
| @@ -18,3 +24,13 @@ ChromeWebUI::~ChromeWebUI() {
|
| Profile* ChromeWebUI::GetProfile() const {
|
| return Profile::FromBrowserContext(tab_contents()->browser_context());
|
| }
|
| +
|
| +// static
|
| +void ChromeWebUI::SetMoreWebUI(bool more_webui) {
|
| + use_more_webui = more_webui;
|
| +}
|
| +
|
| +// static
|
| +bool ChromeWebUI::IsMoreWebUI() {
|
| + return use_more_webui;
|
| +}
|
|
|