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

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

Issue 12209076: [Sync] Enable searching sync setup overlay from settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | 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 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 BrowserOptions = options.BrowserOptions; 10 var BrowserOptions = options.BrowserOptions;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 [$('manage-galleries-button')]); 153 [$('manage-galleries-button')]);
154 OptionsPage.registerOverlay(PasswordManager.getInstance(), 154 OptionsPage.registerOverlay(PasswordManager.getInstance(),
155 BrowserOptions.getInstance(), 155 BrowserOptions.getInstance(),
156 [$('manage-passwords')]); 156 [$('manage-passwords')]);
157 OptionsPage.registerOverlay(SearchEngineManager.getInstance(), 157 OptionsPage.registerOverlay(SearchEngineManager.getInstance(),
158 BrowserOptions.getInstance(), 158 BrowserOptions.getInstance(),
159 [$('manage-default-search-engines')]); 159 [$('manage-default-search-engines')]);
160 OptionsPage.registerOverlay(StartupOverlay.getInstance(), 160 OptionsPage.registerOverlay(StartupOverlay.getInstance(),
161 BrowserOptions.getInstance()); 161 BrowserOptions.getInstance());
162 OptionsPage.registerOverlay(SyncSetupOverlay.getInstance(), 162 OptionsPage.registerOverlay(SyncSetupOverlay.getInstance(),
163 BrowserOptions.getInstance()); 163 BrowserOptions.getInstance(),
164 [$('customize-sync')]);
164 if (cr.isChromeOS) { 165 if (cr.isChromeOS) {
165 OptionsPage.registerOverlay(AccountsOptions.getInstance(), 166 OptionsPage.registerOverlay(AccountsOptions.getInstance(),
166 BrowserOptions.getInstance(), 167 BrowserOptions.getInstance(),
167 [$('manage-accounts-button')]); 168 [$('manage-accounts-button')]);
168 OptionsPage.registerOverlay(BluetoothOptions.getInstance(), 169 OptionsPage.registerOverlay(BluetoothOptions.getInstance(),
169 BrowserOptions.getInstance(), 170 BrowserOptions.getInstance(),
170 [$('bluetooth-add-device')]); 171 [$('bluetooth-add-device')]);
171 OptionsPage.registerOverlay(BluetoothPairing.getInstance(), 172 OptionsPage.registerOverlay(BluetoothPairing.getInstance(),
172 BrowserOptions.getInstance()); 173 BrowserOptions.getInstance());
173 OptionsPage.registerOverlay(FactoryResetOverlay.getInstance(), 174 OptionsPage.registerOverlay(FactoryResetOverlay.getInstance(),
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 options.OptionsPage.willClose(); 265 options.OptionsPage.willClose();
265 }; 266 };
266 267
267 /** 268 /**
268 * Listener for the |popstate| event. 269 * Listener for the |popstate| event.
269 * @param {Event} e The |popstate| event. 270 * @param {Event} e The |popstate| event.
270 */ 271 */
271 window.onpopstate = function(e) { 272 window.onpopstate = function(e) {
272 options.OptionsPage.setState(e.state); 273 options.OptionsPage.setState(e.state);
273 }; 274 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698