| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
| 41 #include "chrome/browser/mac/obsolete_system.h" | 41 #include "chrome/browser/mac/obsolete_system.h" |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 #if defined(OS_CHROMEOS) | 44 #if defined(OS_CHROMEOS) |
| 45 #include "base/files/file_util_proxy.h" | 45 #include "base/files/file_util_proxy.h" |
| 46 #include "base/i18n/time_formatting.h" | 46 #include "base/i18n/time_formatting.h" |
| 47 #include "base/prefs/pref_service.h" | 47 #include "base/prefs/pref_service.h" |
| 48 #include "base/sys_info.h" | 48 #include "base/sys_info.h" |
| 49 #include "chrome/browser/chromeos/login/user_manager.h" | 49 #include "chrome/browser/chromeos/login/users/user_manager.h" |
| 50 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 50 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| 51 #include "chrome/browser/chromeos/settings/cros_settings.h" | 51 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 52 #include "chrome/browser/profiles/profile.h" | 52 #include "chrome/browser/profiles/profile.h" |
| 53 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h" | 53 #include "chrome/browser/ui/webui/help/help_utils_chromeos.h" |
| 54 #include "chromeos/chromeos_switches.h" | 54 #include "chromeos/chromeos_switches.h" |
| 55 #include "chromeos/dbus/dbus_thread_manager.h" | 55 #include "chromeos/dbus/dbus_thread_manager.h" |
| 56 #include "chromeos/dbus/power_manager_client.h" | 56 #include "chromeos/dbus/power_manager_client.h" |
| 57 #include "content/public/browser/browser_thread.h" | 57 #include "content/public/browser/browser_thread.h" |
| 58 #endif | 58 #endif |
| 59 | 59 |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 web_ui()->CallJavascriptFunction( | 546 web_ui()->CallJavascriptFunction( |
| 547 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); | 547 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); |
| 548 } | 548 } |
| 549 | 549 |
| 550 void HelpHandler::OnTargetChannel(const std::string& channel) { | 550 void HelpHandler::OnTargetChannel(const std::string& channel) { |
| 551 web_ui()->CallJavascriptFunction( | 551 web_ui()->CallJavascriptFunction( |
| 552 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); | 552 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); |
| 553 } | 553 } |
| 554 | 554 |
| 555 #endif // defined(OS_CHROMEOS) | 555 #endif // defined(OS_CHROMEOS) |
| OLD | NEW |