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

Side by Side Diff: chrome/browser/resources/feedback.js

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/feedback.html ('k') | chrome/browser/ui/webui/feedback_ui.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 // Constants. 5 // Constants.
6 /** @const */ var FEEDBACK_LANDING_PAGE = 6 /** @const */ var FEEDBACK_LANDING_PAGE =
7 'https://www.google.com/support/chrome/go/feedback_confirmation'; 7 'https://www.google.com/support/chrome/go/feedback_confirmation';
8 8
9 var selectedThumbnailDivId = ''; 9 var selectedThumbnailDivId = '';
10 var selectedThumbnailId = ''; 10 var selectedThumbnailId = '';
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 } 277 }
278 278
279 function setupDialogDefaults(defaults) { 279 function setupDialogDefaults(defaults) {
280 // Current url. 280 // Current url.
281 if ($('page-url-text').value == '') 281 if ($('page-url-text').value == '')
282 $('page-url-text').value = defaults.currentUrl; 282 $('page-url-text').value = defaults.currentUrl;
283 if (defaults.currentUrl == '') 283 if (defaults.currentUrl == '')
284 $('page-url-checkbox').checked = false; 284 $('page-url-checkbox').checked = false;
285 // User e-mail. 285 // User e-mail.
286 $('user-email-text').value = defaults.userEmail; 286 $('user-email-text').value = defaults.userEmail;
287 $('user-email-checkbox').checked = defaults.emailCheckboxDefault;
287 288
288 // Are screenshots disabled? 289 // Are screenshots disabled?
289 if (!defaults.disableScreenshots) 290 if (!defaults.disableScreenshots)
290 enableScreenshots(); 291 enableScreenshots();
291 292
292 if (defaults.useSaved) { 293 if (defaults.useSaved) {
293 $('screenshot-link-tosaved').hidden = false; 294 $('screenshot-link-tosaved').hidden = false;
294 } 295 }
295 } 296 }
296 297
297 window.addEventListener('DOMContentLoaded', load); 298 window.addEventListener('DOMContentLoaded', load);
OLDNEW
« no previous file with comments | « chrome/browser/resources/feedback.html ('k') | chrome/browser/ui/webui/feedback_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698