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

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

Issue 1806353002: Enhanced Sync Confirmation modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2015 The Chromium Authors. All rights reserved. 1 /* Copyright 2015 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('sync.confirmation', function() { 5 cr.define('sync.confirmation', function() {
6 'use strict'; 6 'use strict';
7 7
8 function onConfirm(e) { 8 function onConfirm(e) {
9 chrome.send('confirm'); 9 chrome.send('confirm', [$('activityControlsCheckbox').checked]);
anthonyvd 2016/03/17 20:23:41 This should also happen in onGoToSettings since th
Moe 2016/03/18 21:53:39 Done.
10 } 10 }
11 11
12 function onUndo(e) { 12 function onUndo(e) {
13 chrome.send('undo'); 13 chrome.send('undo');
14 } 14 }
15 15
16 function onGoToSettings(e) { 16 function onGoToSettings(e) {
17 chrome.send('goToSettings'); 17 chrome.send('goToSettings');
18 } 18 }
19 19
(...skipping 13 matching lines...) Expand all
33 $('picture-container').classList.add('loaded'); 33 $('picture-container').classList.add('loaded');
34 } 34 }
35 35
36 return { 36 return {
37 initialize: initialize, 37 initialize: initialize,
38 setUserImageURL: setUserImageURL 38 setUserImageURL: setUserImageURL
39 }; 39 };
40 }); 40 });
41 41
42 document.addEventListener('DOMContentLoaded', sync.confirmation.initialize); 42 document.addEventListener('DOMContentLoaded', sync.confirmation.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698