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

Unified Diff: chrome/browser/ui/webui/feedback_ui.cc

Issue 10834194: Change email to be OPT-IN on Chrome and OPT-OUT on cros. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/resources/feedback.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/feedback_ui.cc
diff --git a/chrome/browser/ui/webui/feedback_ui.cc b/chrome/browser/ui/webui/feedback_ui.cc
index e8cee9c469343de547e9c661b17dba9a42a14593..63101079c89633524e36fa64d9016d7215dc0f17 100644
--- a/chrome/browser/ui/webui/feedback_ui.cc
+++ b/chrome/browser/ui/webui/feedback_ui.cc
@@ -476,6 +476,16 @@ void FeedbackHandler::HandleGetDialogDefaults(const ListValue*) {
std::string user_email = GetUserEmail();
dialog_defaults.SetString("userEmail", user_email);
+ // Set email checkbox to checked by default for cros, unchecked for Chrome.
+ dialog_defaults.SetBoolean(
+ "emailCheckboxDefault",
+#if defined(OS_CHROMEOS)
+ true);
+#else
+ false);
+#endif
+
+
#if defined(OS_CHROMEOS)
// Trigger the request for system information here.
chromeos::system::SyslogsProvider* provider =
« no previous file with comments | « chrome/browser/resources/feedback.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698