OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/task_manager_dialog.h" | 5 #include "chrome/browser/ui/webui/task_manager/task_manager_dialog.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/defaults.h" | 12 #include "chrome/browser/defaults.h" |
13 #include "chrome/browser/platform_util.h" | 13 #include "chrome/browser/platform_util.h" |
14 #include "chrome/browser/prefs/pref_service.h" | 14 #include "chrome/browser/prefs/pref_service.h" |
15 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 15 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 BrowserThread::PostTask( | 196 BrowserThread::PostTask( |
197 BrowserThread::UI, FROM_HERE, | 197 BrowserThread::UI, FROM_HERE, |
198 base::Bind(&TaskManagerDialogImpl::Show, true)); | 198 base::Bind(&TaskManagerDialogImpl::Show, true)); |
199 } | 199 } |
200 | 200 |
201 // static | 201 // static |
202 bool TaskManagerDialog::UseWebUITaskManager() { | 202 bool TaskManagerDialog::UseWebUITaskManager() { |
203 return CommandLine::ForCurrentProcess()->HasSwitch( | 203 return CommandLine::ForCurrentProcess()->HasSwitch( |
204 switches::kWebUITaskManager); | 204 switches::kWebUITaskManager); |
205 } | 205 } |
OLD | NEW |