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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/bind_helpers.h" | 11 #include "base/bind_helpers.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "base/values.h" | 16 #include "base/values.h" |
17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
18 #include "chrome/browser/chrome_notification_types.h" | 18 #include "chrome/browser/chrome_notification_types.h" |
19 #include "chrome/browser/ui/browser.h" | 19 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/browser/ui/browser_commands.h" | 20 #include "chrome/browser/ui/browser_commands.h" |
21 #include "chrome/browser/ui/browser_finder.h" | 21 #include "chrome/browser/ui/browser_finder.h" |
22 #include "chrome/browser/ui/chrome_pages.h" | 22 #include "chrome/browser/ui/chrome_pages.h" |
23 #include "chrome/common/chrome_content_client.h" | 23 #include "chrome/common/chrome_content_client.h" |
24 #include "chrome/common/chrome_version_info.h" | 24 #include "chrome/common/chrome_version_info.h" |
25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
26 #include "chrome/common/url_constants.h" | 26 #include "chrome/common/url_constants.h" |
| 27 #include "chrome/grit/chromium_strings.h" |
| 28 #include "chrome/grit/generated_resources.h" |
| 29 #include "chrome/grit/google_chrome_strings.h" |
27 #include "components/google/core/browser/google_util.h" | 30 #include "components/google/core/browser/google_util.h" |
28 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
29 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
30 #include "content/public/browser/web_ui.h" | 33 #include "content/public/browser/web_ui.h" |
31 #include "content/public/common/user_agent.h" | 34 #include "content/public/common/user_agent.h" |
32 #include "grit/chromium_strings.h" | |
33 #include "grit/generated_resources.h" | |
34 #include "grit/google_chrome_strings.h" | |
35 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
36 #include "v8/include/v8.h" | 36 #include "v8/include/v8.h" |
37 | 37 |
38 #if defined(OS_MACOSX) | 38 #if defined(OS_MACOSX) |
39 #include "chrome/browser/mac/obsolete_system.h" | 39 #include "chrome/browser/mac/obsolete_system.h" |
40 #endif | 40 #endif |
41 | 41 |
42 #if defined(OS_CHROMEOS) | 42 #if defined(OS_CHROMEOS) |
43 #include "base/files/file_util_proxy.h" | 43 #include "base/files/file_util_proxy.h" |
44 #include "base/i18n/time_formatting.h" | 44 #include "base/i18n/time_formatting.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 web_ui()->CallJavascriptFunction( | 558 web_ui()->CallJavascriptFunction( |
559 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); | 559 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); |
560 } | 560 } |
561 | 561 |
562 void HelpHandler::OnTargetChannel(const std::string& channel) { | 562 void HelpHandler::OnTargetChannel(const std::string& channel) { |
563 web_ui()->CallJavascriptFunction( | 563 web_ui()->CallJavascriptFunction( |
564 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); | 564 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); |
565 } | 565 } |
566 | 566 |
567 #endif // defined(OS_CHROMEOS) | 567 #endif // defined(OS_CHROMEOS) |
OLD | NEW |