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

Unified Diff: chrome/browser/ui/webui/help/help_handler.cc

Issue 12490012: Send Feedback Experiment (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/help/help_handler.cc
diff --git a/chrome/browser/ui/webui/help/help_handler.cc b/chrome/browser/ui/webui/help/help_handler.cc
index 9f5dce9fb4c341ae4f8cf2bccf5544e9cc65ac4b..2727372c8ffebc58a63f4ea5a5212d893db59280 100644
--- a/chrome/browser/ui/webui/help/help_handler.cc
+++ b/chrome/browser/ui/webui/help/help_handler.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/chrome_pages.h"
+#include "chrome/browser/ui/send_feedback_experiment.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/url_constants.h"
@@ -53,6 +54,8 @@ using content::BrowserThread;
namespace {
+const char kResourceReportIssue[] = "reportAnIssue";
+
// Returns the browser version as a string.
string16 BuildBrowserVersionString() {
chrome::VersionInfo version_info;
@@ -139,7 +142,7 @@ void HelpHandler::GetLocalizedValues(content::WebUIDataSource* source) {
{ "updating", IDS_UPGRADE_UPDATING },
{ "updateAlmostDone", IDS_UPGRADE_SUCCESSFUL_RELAUNCH },
{ "getHelpWithChrome", IDS_GET_HELP_USING_CHROME },
- { "reportAnIssue", IDS_REPORT_AN_ISSUE },
+ { kResourceReportIssue, IDS_REPORT_AN_ISSUE },
#if defined(OS_CHROMEOS)
{ "platform", IDS_PLATFORM_LABEL },
{ "firmware", IDS_ABOUT_PAGE_FIRMWARE },
@@ -161,6 +164,16 @@ void HelpHandler::GetLocalizedValues(content::WebUIDataSource* source) {
#endif
};
+ if (chrome::UseAlternateSendFeedbackText()) {
+ // Field trial to substitute "Report an Issue" with "Send Feedback".
+ // (crbug.com/169339)
+ std::string report_issue_key(kResourceReportIssue);
+ for (size_t i = 0; i < ARRAYSIZE_UNSAFE(resources); ++i) {
+ if (report_issue_key == resources[i].name)
+ resources[i].ids = IDS_SEND_FEEDBACK;
+ }
+ }
+
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(resources); ++i) {
source->AddString(resources[i].name,
l10n_util::GetStringUTF16(resources[i].ids));
« no previous file with comments | « chrome/browser/ui/toolbar/wrench_menu_model.cc ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698