Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 2844193002: Add UMA histogram to track the various sources that request the feedback app (Closed)
Patch Set: "" --> string() Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/sad_tab.cc ('k') | chrome/browser/ui/webui/settings/about_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « chrome/browser/ui/sad_tab.cc ('k') | chrome/browser/ui/webui/settings/about_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698