| 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" | 10 #include "base/prefs/pref_registry_simple.h" |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 void EnableDebuggingScreenHandler::HandleOnLearnMore() { | 280 void EnableDebuggingScreenHandler::HandleOnLearnMore() { |
| 281 VLOG(1) << "Trying to view the help article about debugging features."; | 281 VLOG(1) << "Trying to view the help article about debugging features."; |
| 282 const std::string help_content = | 282 const std::string help_content = |
| 283 l10n_util::GetStringUTF8(IDS_ENABLE_DEBUGGING_HELP); | 283 l10n_util::GetStringUTF8(IDS_ENABLE_DEBUGGING_HELP); |
| 284 const GURL data_url = GURL("data:text/html;charset=utf-8," + help_content); | 284 const GURL data_url = GURL("data:text/html;charset=utf-8," + help_content); |
| 285 | 285 |
| 286 LoginWebDialog* dialog = new LoginWebDialog( | 286 LoginWebDialog* dialog = new LoginWebDialog( |
| 287 Profile::FromWebUI(web_ui()), | 287 Profile::FromWebUI(web_ui()), |
| 288 NULL, | 288 NULL, |
| 289 GetNativeWindow(), | 289 GetNativeWindow(), |
| 290 l10n_util::GetStringUTF16(IDS_ENABLE_DEBUGGING_SCREEN_TITLE), | 290 base::string16(), |
| 291 data_url); | 291 data_url); |
| 292 dialog->Show(); | 292 dialog->Show(); |
| 293 } | 293 } |
| 294 | 294 |
| 295 } // namespace chromeos | 295 } // namespace chromeos |
| OLD | NEW |