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

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

Issue 1722493002: Project Eraser: Kill chrome://memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chrome_browser_ui.gypi. Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 cr.define('help', function() { 5 cr.define('help', function() {
6 var Page = cr.ui.pageManager.Page; 6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager; 7 var PageManager = cr.ui.pageManager.PageManager;
8 8
9 /** 9 /**
10 * Encapsulated handling of the About page. Called 'help' internally to avoid 10 * Encapsulated handling of the About page. Called 'help' internally to avoid
11 * confusion with generic AboutUI (about:memory, about:sandbox, etc.). 11 * confusion with generic AboutUI (about:version, about:sandbox, etc.).
12 */ 12 */
13 function HelpPage() { 13 function HelpPage() {
14 var id = loadTimeData.valueExists('aboutOverlayTabTitle') ? 14 var id = loadTimeData.valueExists('aboutOverlayTabTitle') ?
15 'aboutOverlayTabTitle' : 'aboutTitle'; 15 'aboutOverlayTabTitle' : 'aboutTitle';
16 Page.call(this, 'help', loadTimeData.getString(id), 'help-page'); 16 Page.call(this, 'help', loadTimeData.getString(id), 'help-page');
17 } 17 }
18 18
19 cr.addSingletonGetter(HelpPage); 19 cr.addSingletonGetter(HelpPage);
20 20
21 HelpPage.prototype = { 21 HelpPage.prototype = {
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 HelpPage.setRegulatoryLabelText = function(text) { 712 HelpPage.setRegulatoryLabelText = function(text) {
713 assert(cr.isChromeOS); 713 assert(cr.isChromeOS);
714 HelpPage.getInstance().setRegulatoryLabelText_(text); 714 HelpPage.getInstance().setRegulatoryLabelText_(text);
715 }; 715 };
716 716
717 // Export 717 // Export
718 return { 718 return {
719 HelpPage: HelpPage 719 HelpPage: HelpPage
720 }; 720 };
721 }); 721 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/about_memory_mac.html ('k') | chrome/browser/resources/memory_internals/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698