| 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/help/help_handler.h" | 5 #include "chrome/browser/ui/webui/help/help_handler.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "ash/system/chromeos/devicetype_utils.h" | 11 #include "ash/common/system/chromeos/devicetype_utils.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/files/file_util.h" | 16 #include "base/files/file_util.h" |
| 17 #include "base/i18n/message_formatter.h" | 17 #include "base/i18n/message_formatter.h" |
| 18 #include "base/location.h" | 18 #include "base/location.h" |
| 19 #include "base/macros.h" | 19 #include "base/macros.h" |
| 20 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
| 21 #include "base/strings/string_util.h" | 21 #include "base/strings/string_util.h" |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 } | 736 } |
| 737 | 737 |
| 738 void HelpHandler::OnRegulatoryLabelTextRead(const std::string& text) { | 738 void HelpHandler::OnRegulatoryLabelTextRead(const std::string& text) { |
| 739 // Remove unnecessary whitespace. | 739 // Remove unnecessary whitespace. |
| 740 web_ui()->CallJavascriptFunctionUnsafe( | 740 web_ui()->CallJavascriptFunctionUnsafe( |
| 741 "help.HelpPage.setRegulatoryLabelText", | 741 "help.HelpPage.setRegulatoryLabelText", |
| 742 base::StringValue(base::CollapseWhitespaceASCII(text, true))); | 742 base::StringValue(base::CollapseWhitespaceASCII(text, true))); |
| 743 } | 743 } |
| 744 | 744 |
| 745 #endif // defined(OS_CHROMEOS) | 745 #endif // defined(OS_CHROMEOS) |
| OLD | NEW |