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

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

Issue 651643006: Show About link in Settings instead of version number for M39 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2171
Patch Set: Created 6 years, 2 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 var AddLanguageOverlay = options.AddLanguageOverlay; 5 var AddLanguageOverlay = options.AddLanguageOverlay;
6 var AlertOverlay = options.AlertOverlay; 6 var AlertOverlay = options.AlertOverlay;
7 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay; 7 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay;
8 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay; 8 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay;
9 var AutofillOptions = options.AutofillOptions; 9 var AutofillOptions = options.AutofillOptions;
10 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner; 10 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 BrowserOptions.getInstance(), 171 BrowserOptions.getInstance(),
172 [$('reset-profile-settings')]); 172 [$('reset-profile-settings')]);
173 PageManager.registerOverlay(SearchEngineManager.getInstance(), 173 PageManager.registerOverlay(SearchEngineManager.getInstance(),
174 BrowserOptions.getInstance(), 174 BrowserOptions.getInstance(),
175 [$('manage-default-search-engines')]); 175 [$('manage-default-search-engines')]);
176 PageManager.registerOverlay(StartupOverlay.getInstance(), 176 PageManager.registerOverlay(StartupOverlay.getInstance(),
177 BrowserOptions.getInstance()); 177 BrowserOptions.getInstance());
178 PageManager.registerOverlay(SyncSetupOverlay.getInstance(), 178 PageManager.registerOverlay(SyncSetupOverlay.getInstance(),
179 BrowserOptions.getInstance(), 179 BrowserOptions.getInstance(),
180 [$('customize-sync')]); 180 [$('customize-sync')]);
181 if (loadTimeData.getBoolean('showVersion')) { 181 if (loadTimeData.getBoolean('showAbout')) {
182 PageManager.registerOverlay(help.HelpPage.getInstance(), 182 PageManager.registerOverlay(help.HelpPage.getInstance(),
183 BrowserOptions.getInstance()); 183 BrowserOptions.getInstance());
184 if (help.ChannelChangePage) { 184 if (help.ChannelChangePage) {
185 PageManager.registerOverlay(help.ChannelChangePage.getInstance(), 185 PageManager.registerOverlay(help.ChannelChangePage.getInstance(),
186 help.HelpPage.getInstance()); 186 help.HelpPage.getInstance());
187 } 187 }
188 } 188 }
189 if (cr.isChromeOS) { 189 if (cr.isChromeOS) {
190 PageManager.registerOverlay(AccountsOptions.getInstance(), 190 PageManager.registerOverlay(AccountsOptions.getInstance(),
191 BrowserOptions.getInstance(), 191 BrowserOptions.getInstance(),
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 }; 278 };
279 279
280 /** 280 /**
281 * Listener for the |popstate| event. 281 * Listener for the |popstate| event.
282 * @param {Event} e The |popstate| event. 282 * @param {Event} e The |popstate| event.
283 */ 283 */
284 window.onpopstate = function(e) { 284 window.onpopstate = function(e) {
285 var pageName = PageManager.getPageNameFromPath(); 285 var pageName = PageManager.getPageNameFromPath();
286 PageManager.setState(pageName, location.hash, e.state); 286 PageManager.setState(pageName, location.hash, e.state);
287 }; 287 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/resources/options/search_box.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698