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

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

Issue 171763004: Remove pp_ifdef from resource files in chrome/browser and chrome/renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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
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 src="../uber/uber_utils.js"> 5 <include src="../uber/uber_utils.js">
6 6
7 cr.define('help', function() { 7 cr.define('help', function() {
8 /** 8 /**
9 * Encapsulated handling of the help page. 9 * Encapsulated handling of the help page.
10 */ 10 */
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 loadTimeData.getString('productOsLicense'); 65 loadTimeData.getString('productOsLicense');
66 } 66 }
67 67
68 var productTOS = $('product-tos'); 68 var productTOS = $('product-tos');
69 if (productTOS) 69 if (productTOS)
70 productTOS.innerHTML = loadTimeData.getString('productTOS'); 70 productTOS.innerHTML = loadTimeData.getString('productTOS');
71 71
72 $('get-help').onclick = function() { 72 $('get-help').onclick = function() {
73 chrome.send('openHelpPage'); 73 chrome.send('openHelpPage');
74 }; 74 };
75 <if expr="pp_ifdef('_google_chrome')"> 75 <if expr="_google_chrome">
76 $('report-issue').onclick = function() { 76 $('report-issue').onclick = function() {
77 chrome.send('openFeedbackDialog'); 77 chrome.send('openFeedbackDialog');
78 }; 78 };
79 </if> 79 </if>
80 80
81 this.maybeSetOnClick_($('more-info-expander'), 81 this.maybeSetOnClick_($('more-info-expander'),
82 this.toggleMoreInfo_.bind(this)); 82 this.toggleMoreInfo_.bind(this));
83 83
84 this.maybeSetOnClick_($('promote'), function() { 84 this.maybeSetOnClick_($('promote'), function() {
85 chrome.send('promoteUpdater'); 85 chrome.send('promoteUpdater');
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 HelpPage: HelpPage 561 HelpPage: HelpPage
562 }; 562 };
563 }); 563 });
564 564
565 /** 565 /**
566 * onload listener to initialize the HelpPage. 566 * onload listener to initialize the HelpPage.
567 */ 567 */
568 window.onload = function() { 568 window.onload = function() {
569 help.HelpPage.getInstance().initialize(); 569 help.HelpPage.getInstance().initialize();
570 }; 570 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/help/help.html ('k') | chrome/browser/resources/local_discovery/local_discovery.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698