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

Side by Side Diff: remoting/webapp/crd/js/feedback.js

Issue 1144193005: Fix a lot of support links. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: first round Created 5 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
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 'use strict'; 5 'use strict';
6 6
7 var remoting = remoting || {}; 7 var remoting = remoting || {};
8 8
9 /** 9 /**
10 * Attach appropriate event handlers and show or hide the feedback button based 10 * Attach appropriate event handlers and show or hide the feedback button based
11 * on whether or not the current version of Chrome recognizes Chrome Remote 11 * on whether or not the current version of Chrome recognizes Chrome Remote
12 * Desktop as an authorized feedback source. 12 * Desktop as an authorized feedback source.
13 * 13 *
14 * @param {HTMLElement} container The menu containing the help and feedback 14 * @param {HTMLElement} container The menu containing the help and feedback
15 * items. 15 * items.
16 */ 16 */
17 remoting.manageHelpAndFeedback = function(container) { 17 remoting.manageHelpAndFeedback = function(container) {
18 var showHelp = function() { 18 var showHelp = function() {
19 window.open('https://www.google.com/support/chrome/bin/answer.py?' + 19 window.open('https://support.google.com/chrome/answer/1649523');
20 'answer=1649523'); 20 };
21 }
22 var helpButton = container.querySelector('.menu-help'); 21 var helpButton = container.querySelector('.menu-help');
23 base.debug.assert(helpButton != null); 22 base.debug.assert(helpButton != null);
24 helpButton.addEventListener('click', showHelp, false); 23 helpButton.addEventListener('click', showHelp, false);
25 var feedbackButton = container.querySelector('.menu-feedback'); 24 var feedbackButton = container.querySelector('.menu-feedback');
26 base.debug.assert(feedbackButton != null); 25 base.debug.assert(feedbackButton != null);
27 var chromeVersion = parseInt( 26 var chromeVersion = parseInt(
28 window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10); 27 window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10);
29 if (chromeVersion >= 35) { 28 if (chromeVersion >= 35) {
30 feedbackButton.addEventListener('click', 29 feedbackButton.addEventListener('click',
31 remoting.sendFeedback_, 30 remoting.sendFeedback_,
(...skipping 12 matching lines...) Expand all
44 requestFeedback: true, 43 requestFeedback: true,
45 feedbackInfo: { 44 feedbackInfo: {
46 description: '', 45 description: '',
47 systemInformation: [ 46 systemInformation: [
48 { key: 'version', value: remoting.app.getExtensionInfo() } 47 { key: 'version', value: remoting.app.getExtensionInfo() }
49 ] 48 ]
50 } 49 }
51 }; 50 };
52 var kFeedbackExtensionId = 'gfdkimpbcpahaombhbimeihdjnejgicl'; 51 var kFeedbackExtensionId = 'gfdkimpbcpahaombhbimeihdjnejgicl';
53 chrome.runtime.sendMessage(kFeedbackExtensionId, message, function() {}); 52 chrome.runtime.sendMessage(kFeedbackExtensionId, message, function() {});
54 }; 53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698