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

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

Issue 7919028: Revert 101581 - Add --use-more-webui runtime flag to toggle WebUI replacements for native dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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/chrome_web_ui.h ('k') | chrome/browser/ui/webui/chrome_web_ui_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chrome_web_ui.cc
===================================================================
--- chrome/browser/ui/webui/chrome_web_ui.cc (revision 101584)
+++ chrome/browser/ui/webui/chrome_web_ui.cc (working copy)
@@ -4,15 +4,9 @@
#include "chrome/browser/ui/webui/chrome_web_ui.h"
-#include "base/command_line.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/chrome_switches.h"
#include "content/browser/tab_contents/tab_contents.h"
-#if defined(TOOLKIT_VIEWS)
-#include "views/widget/widget.h"
-#endif
-
ChromeWebUI::ChromeWebUI(TabContents* contents)
: WebUI(contents),
force_bookmark_bar_visible_(false) {
@@ -24,13 +18,3 @@
Profile* ChromeWebUI::GetProfile() const {
return Profile::FromBrowserContext(tab_contents()->browser_context());
}
-
-// static
-bool ChromeWebUI::IsMoreWebUI() {
- bool more_webui = CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kUseMoreWebUI);
-#if defined(TOOLKIT_VIEWS)
- more_webui |= views::Widget::IsPureViews();
-#endif
- return more_webui;
-}
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui.h ('k') | chrome/browser/ui/webui/chrome_web_ui_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698