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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 7436001: WebUI TaskManager: make it default on touch UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enclose the block with one if-else clause. Created 9 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 4e852a14c7ed8a2fac06df80d64d460871eab8d6..b1cf92f552e98e820b59f08e20cd007d30a03746 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1051,6 +1051,9 @@ void BrowserView::ShowCompactLocationBarUnderSelectedTab() {
}
void BrowserView::ShowTaskManager() {
+#if defined(TOUCH_UI)
+ TaskManagerDialog::Show();
+#else
// Uses WebUI TaskManager when swiches is set. It is beta feature.
if (CommandLine::ForCurrentProcess()
->HasSwitch(switches::kEnableWebUITaskManager)) {
@@ -1058,6 +1061,7 @@ void BrowserView::ShowTaskManager() {
} else {
browser::ShowTaskManager();
}
+#endif // defined(TOUCH_UI)
}
void BrowserView::ShowBackgroundPages() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698