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" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "components/google/core/browser/google_util.h" | 27 #include "components/google/core/browser/google_util.h" |
28 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
29 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
30 #include "content/public/browser/web_ui.h" | 30 #include "content/public/browser/web_ui.h" |
31 #include "content/public/browser/web_ui_data_source.h" | 31 #include "content/public/browser/web_ui_data_source.h" |
32 #include "content/public/common/user_agent.h" | 32 #include "content/public/common/user_agent.h" |
33 #include "grit/chromium_strings.h" | 33 #include "grit/chromium_strings.h" |
34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
35 #include "grit/google_chrome_strings.h" | 35 #include "grit/google_chrome_strings.h" |
36 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
37 #include "ui/base/resource/resource_bundle.h" | |
38 #include "v8/include/v8.h" | 37 #include "v8/include/v8.h" |
39 | 38 |
40 #if defined(OS_MACOSX) | 39 #if defined(OS_MACOSX) |
41 #include "chrome/browser/mac/obsolete_system.h" | 40 #include "chrome/browser/mac/obsolete_system.h" |
42 #endif | 41 #endif |
43 | 42 |
44 #if defined(OS_CHROMEOS) | 43 #if defined(OS_CHROMEOS) |
45 #include "base/files/file_util_proxy.h" | 44 #include "base/files/file_util_proxy.h" |
46 #include "base/i18n/time_formatting.h" | 45 #include "base/i18n/time_formatting.h" |
47 #include "base/prefs/pref_service.h" | 46 #include "base/prefs/pref_service.h" |
48 #include "base/sys_info.h" | 47 #include "base/sys_info.h" |
49 #include "chrome/browser/chromeos/login/users/user_manager.h" | 48 #include "chrome/browser/chromeos/login/users/user_manager.h" |
50 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 49 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
51 #include "chrome/browser/chromeos/settings/cros_settings.h" | 50 #include "chrome/browser/chromeos/settings/cros_settings.h" |
52 #include "chrome/browser/profiles/profile.h" | 51 #include "chrome/browser/profiles/profile.h" |
53 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h" | 52 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h" |
54 #include "chromeos/chromeos_switches.h" | 53 #include "chromeos/chromeos_switches.h" |
55 #include "chromeos/dbus/dbus_thread_manager.h" | 54 #include "chromeos/dbus/dbus_thread_manager.h" |
56 #include "chromeos/dbus/power_manager_client.h" | 55 #include "chromeos/dbus/power_manager_client.h" |
57 #include "content/public/browser/browser_thread.h" | |
58 #endif | 56 #endif |
59 | 57 |
60 using base::ListValue; | 58 using base::ListValue; |
61 using content::BrowserThread; | 59 using content::BrowserThread; |
62 | 60 |
63 namespace { | 61 namespace { |
64 | 62 |
65 // Returns the browser version as a string. | 63 // Returns the browser version as a string. |
66 base::string16 BuildBrowserVersionString() { | 64 base::string16 BuildBrowserVersionString() { |
67 chrome::VersionInfo version_info; | 65 chrome::VersionInfo version_info; |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 web_ui()->CallJavascriptFunction( | 547 web_ui()->CallJavascriptFunction( |
550 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); | 548 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); |
551 } | 549 } |
552 | 550 |
553 void HelpHandler::OnTargetChannel(const std::string& channel) { | 551 void HelpHandler::OnTargetChannel(const std::string& channel) { |
554 web_ui()->CallJavascriptFunction( | 552 web_ui()->CallJavascriptFunction( |
555 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); | 553 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); |
556 } | 554 } |
557 | 555 |
558 #endif // defined(OS_CHROMEOS) | 556 #endif // defined(OS_CHROMEOS) |
OLD | NEW |