| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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/chromeos/login/enable_debugging_screen_handler
.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/enable_debugging_screen_handler
.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/prefs/pref_registry_simple.h" | |
| 11 #include "base/prefs/pref_service.h" | |
| 12 #include "base/values.h" | 10 #include "base/values.h" |
| 13 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 14 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h" | 12 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" | 14 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" |
| 17 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 18 #include "chrome/grit/chromium_strings.h" | 16 #include "chrome/grit/chromium_strings.h" |
| 19 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
| 20 #include "chromeos/chromeos_switches.h" | 18 #include "chromeos/chromeos_switches.h" |
| 21 #include "chromeos/dbus/cryptohome_client.h" | 19 #include "chromeos/dbus/cryptohome_client.h" |
| 22 #include "chromeos/dbus/dbus_thread_manager.h" | 20 #include "chromeos/dbus/dbus_thread_manager.h" |
| 23 #include "chromeos/dbus/debug_daemon_client.h" | 21 #include "chromeos/dbus/debug_daemon_client.h" |
| 24 #include "chromeos/dbus/power_manager_client.h" | 22 #include "chromeos/dbus/power_manager_client.h" |
| 25 #include "components/login/localized_values_builder.h" | 23 #include "components/login/localized_values_builder.h" |
| 24 #include "components/prefs/pref_registry_simple.h" |
| 25 #include "components/prefs/pref_service.h" |
| 26 #include "grit/components_strings.h" | 26 #include "grit/components_strings.h" |
| 27 #include "ui/base/l10n/l10n_util.h" | 27 #include "ui/base/l10n/l10n_util.h" |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 const char kJsScreenPath[] = "login.EnableDebuggingScreen"; | 31 const char kJsScreenPath[] = "login.EnableDebuggingScreen"; |
| 32 | 32 |
| 33 const char kEnableDebuggingScreen[] = "debugging"; | 33 const char kEnableDebuggingScreen[] = "debugging"; |
| 34 | 34 |
| 35 } // namespace | 35 } // namespace |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 LoginWebDialog* dialog = new LoginWebDialog( | 289 LoginWebDialog* dialog = new LoginWebDialog( |
| 290 Profile::FromWebUI(web_ui()), | 290 Profile::FromWebUI(web_ui()), |
| 291 NULL, | 291 NULL, |
| 292 GetNativeWindow(), | 292 GetNativeWindow(), |
| 293 base::string16(), | 293 base::string16(), |
| 294 data_url); | 294 data_url); |
| 295 dialog->Show(); | 295 dialog->Show(); |
| 296 } | 296 } |
| 297 | 297 |
| 298 } // namespace chromeos | 298 } // namespace chromeos |
| OLD | NEW |