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 |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 | 531 |
532 void HelpHandler::RelaunchNow(const base::ListValue* args) { | 532 void HelpHandler::RelaunchNow(const base::ListValue* args) { |
533 DCHECK(args->empty()); | 533 DCHECK(args->empty()); |
534 chrome::AttemptRelaunch(); | 534 chrome::AttemptRelaunch(); |
535 } | 535 } |
536 | 536 |
537 void HelpHandler::OpenFeedbackDialog(const base::ListValue* args) { | 537 void HelpHandler::OpenFeedbackDialog(const base::ListValue* args) { |
538 DCHECK(args->empty()); | 538 DCHECK(args->empty()); |
539 Browser* browser = chrome::FindBrowserWithWebContents( | 539 Browser* browser = chrome::FindBrowserWithWebContents( |
540 web_ui()->GetWebContents()); | 540 web_ui()->GetWebContents()); |
541 chrome::OpenFeedbackDialog(browser); | 541 chrome::OpenFeedbackDialog(browser, |
| 542 chrome::kFeedbackSourceOldSettingsAboutPage); |
542 } | 543 } |
543 | 544 |
544 void HelpHandler::OpenHelpPage(const base::ListValue* args) { | 545 void HelpHandler::OpenHelpPage(const base::ListValue* args) { |
545 DCHECK(args->empty()); | 546 DCHECK(args->empty()); |
546 Browser* browser = chrome::FindBrowserWithWebContents( | 547 Browser* browser = chrome::FindBrowserWithWebContents( |
547 web_ui()->GetWebContents()); | 548 web_ui()->GetWebContents()); |
548 chrome::ShowHelp(browser, chrome::HELP_SOURCE_WEBUI); | 549 chrome::ShowHelp(browser, chrome::HELP_SOURCE_WEBUI); |
549 } | 550 } |
550 | 551 |
551 #if defined(OS_CHROMEOS) | 552 #if defined(OS_CHROMEOS) |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 base::Value("device_supported"), | 753 base::Value("device_supported"), |
753 base::Value("")); | 754 base::Value("")); |
754 } else { | 755 } else { |
755 web_ui()->CallJavascriptFunctionUnsafe( | 756 web_ui()->CallJavascriptFunctionUnsafe( |
756 "help.HelpPage.updateEolMessage", base::Value("device_endoflife"), | 757 "help.HelpPage.updateEolMessage", base::Value("device_endoflife"), |
757 base::Value(l10n_util::GetStringUTF16(IDS_ABOUT_PAGE_EOL_EOL))); | 758 base::Value(l10n_util::GetStringUTF16(IDS_ABOUT_PAGE_EOL_EOL))); |
758 } | 759 } |
759 } | 760 } |
760 | 761 |
761 #endif // defined(OS_CHROMEOS) | 762 #endif // defined(OS_CHROMEOS) |
OLD | NEW |