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

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

Issue 8412009: Turn on content-security-policy for chrome://syncpromo webui page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // TODO(sail): Refactor options_page and remove this include.
6 <include src="options/options_page.js"/>
7 <include src="sync_setup_overlay.js"/>
8
5 cr.define('sync_promo', function() { 9 cr.define('sync_promo', function() {
6 /** 10 /**
7 * SyncPromo class 11 * SyncPromo class
8 * Subclass of options.SyncSetupOverlay that customizes the sync setup 12 * Subclass of options.SyncSetupOverlay that customizes the sync setup
9 * overlay for use in the new tab page. 13 * overlay for use in the new tab page.
10 * @class 14 * @class
11 */ 15 */
12 function SyncPromo() { 16 function SyncPromo() {
13 options.SyncSetupOverlay.call(this, 'syncSetup', 17 options.SyncSetupOverlay.call(this, 'syncSetup',
14 templateData.syncSetupOverlayTitle, 18 templateData.syncSetupOverlayTitle,
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 231
228 // Export 232 // Export
229 return { 233 return {
230 SyncPromo : SyncPromo 234 SyncPromo : SyncPromo
231 }; 235 };
232 }); 236 });
233 237
234 var OptionsPage = options.OptionsPage; 238 var OptionsPage = options.OptionsPage;
235 var SyncSetupOverlay = sync_promo.SyncPromo; 239 var SyncSetupOverlay = sync_promo.SyncPromo;
236 window.addEventListener('DOMContentLoaded', sync_promo.SyncPromo.initialize); 240 window.addEventListener('DOMContentLoaded', sync_promo.SyncPromo.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/resources/sync_promo.html ('k') | chrome/browser/ui/webui/chrome_url_data_manager_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698