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 14 matching lines...) Expand all Loading... |
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" | 27 #include "chrome/grit/chromium_strings.h" |
28 #include "chrome/grit/generated_resources.h" | 28 #include "chrome/grit/generated_resources.h" |
29 #include "chrome/grit/google_chrome_strings.h" | 29 #include "chrome/grit/google_chrome_strings.h" |
30 #include "components/google/core/browser/google_util.h" | 30 #include "components/google/core/browser/google_util.h" |
31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
32 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
33 #include "content/public/browser/web_ui.h" | 33 #include "content/public/browser/web_ui.h" |
34 #include "content/public/common/user_agent.h" | 34 #include "content/public/common/user_agent.h" |
| 35 #include "grit/components_strings.h" |
35 #include "ui/base/l10n/l10n_util.h" | 36 #include "ui/base/l10n/l10n_util.h" |
36 #include "v8/include/v8.h" | 37 #include "v8/include/v8.h" |
37 | 38 |
38 #if defined(OS_MACOSX) | 39 #if defined(OS_MACOSX) |
39 #include "chrome/browser/mac/obsolete_system.h" | 40 #include "chrome/browser/mac/obsolete_system.h" |
40 #endif | 41 #endif |
41 | 42 |
42 #if defined(OS_CHROMEOS) | 43 #if defined(OS_CHROMEOS) |
43 #include "base/files/file_util_proxy.h" | 44 #include "base/files/file_util_proxy.h" |
44 #include "base/i18n/time_formatting.h" | 45 #include "base/i18n/time_formatting.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 web_ui()->CallJavascriptFunction( | 559 web_ui()->CallJavascriptFunction( |
559 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); | 560 "help.HelpPage.updateCurrentChannel", base::StringValue(channel)); |
560 } | 561 } |
561 | 562 |
562 void HelpHandler::OnTargetChannel(const std::string& channel) { | 563 void HelpHandler::OnTargetChannel(const std::string& channel) { |
563 web_ui()->CallJavascriptFunction( | 564 web_ui()->CallJavascriptFunction( |
564 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); | 565 "help.HelpPage.updateTargetChannel", base::StringValue(channel)); |
565 } | 566 } |
566 | 567 |
567 #endif // defined(OS_CHROMEOS) | 568 #endif // defined(OS_CHROMEOS) |
OLD | NEW |