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/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h" | 12 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h" | 14 #include "chrome/browser/ui/webui/chromeos/login/oobe_screen.h" |
15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
16 #include "chrome/grit/chromium_strings.h" | 16 #include "chrome/grit/chromium_strings.h" |
17 #include "chrome/grit/generated_resources.h" | 17 #include "chrome/grit/generated_resources.h" |
18 #include "chromeos/chromeos_switches.h" | 18 #include "chromeos/chromeos_switches.h" |
19 #include "chromeos/dbus/cryptohome_client.h" | 19 #include "chromeos/dbus/cryptohome_client.h" |
20 #include "chromeos/dbus/dbus_thread_manager.h" | 20 #include "chromeos/dbus/dbus_thread_manager.h" |
21 #include "chromeos/dbus/debug_daemon_client.h" | 21 #include "chromeos/dbus/debug_daemon_client.h" |
22 #include "chromeos/dbus/power_manager_client.h" | 22 #include "chromeos/dbus/power_manager_client.h" |
23 #include "components/login/localized_values_builder.h" | 23 #include "components/login/localized_values_builder.h" |
24 #include "components/prefs/pref_registry_simple.h" | 24 #include "components/prefs/pref_registry_simple.h" |
25 #include "components/prefs/pref_service.h" | 25 #include "components/prefs/pref_service.h" |
26 #include "grit/components_strings.h" | 26 #include "components/strings/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 } // namespace | 33 } // namespace |
34 | 34 |
35 namespace chromeos { | 35 namespace chromeos { |
36 | 36 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 LoginWebDialog* dialog = new LoginWebDialog( | 287 LoginWebDialog* dialog = new LoginWebDialog( |
288 Profile::FromWebUI(web_ui()), | 288 Profile::FromWebUI(web_ui()), |
289 NULL, | 289 NULL, |
290 GetNativeWindow(), | 290 GetNativeWindow(), |
291 base::string16(), | 291 base::string16(), |
292 data_url); | 292 data_url); |
293 dialog->Show(); | 293 dialog->Show(); |
294 } | 294 } |
295 | 295 |
296 } // namespace chromeos | 296 } // namespace chromeos |
OLD | NEW |