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

Side by Side Diff: chrome/browser/resources/sync_internals/data.js

Issue 1226213002: Sync: Support nodes with implicit permanent folders: Node Browser and out-of-order loading from DB (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed memory leak Created 5 years, 5 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) 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 (function() { 5 (function() {
6 var dumpToTextButton = $('dump-to-text'); 6 var dumpToTextButton = $('dump-to-text');
7 var dataDump = $('data-dump'); 7 var dataDump = $('data-dump');
8 dumpToTextButton.addEventListener('click', function(event) { 8 dumpToTextButton.addEventListener('click', function(event) {
9 // TODO(akalin): Add info like Chrome version, OS, date dumped, etc. 9 // TODO(akalin): Add info like Chrome version, OS, date dumped, etc.
10 10
(...skipping 26 matching lines...) Expand all
37 'IS_UNSYNCED', 37 'IS_UNSYNCED',
38 'IS_UNAPPLIED_UPDATE', 38 'IS_UNAPPLIED_UPDATE',
39 'BASE_VERSION', 39 'BASE_VERSION',
40 'BASE_VERSION_TIME', 40 'BASE_VERSION_TIME',
41 'SERVER_VERSION', 41 'SERVER_VERSION',
42 'SERVER_VERSION_TIME', 42 'SERVER_VERSION_TIME',
43 'PARENT_ID', 43 'PARENT_ID',
44 'SERVER_PARENT_ID', 44 'SERVER_PARENT_ID',
45 'IS_DEL', 45 'IS_DEL',
46 'SERVER_IS_DEL', 46 'SERVER_IS_DEL',
47 'serverModelType', 47 'modelType',
48 'SERVER_SPECIFICS', 48 'SERVER_SPECIFICS',
49 'SPECIFICS', 49 'SPECIFICS',
50 ]; 50 ];
51 51
52 function versionToDateString(version) { 52 function versionToDateString(version) {
53 // TODO(mmontgomery): ugly? Hacky? Is there a better way? 53 // TODO(mmontgomery): ugly? Hacky? Is there a better way?
54 var epochLength = Date.now().toString().length; 54 var epochLength = Date.now().toString().length;
55 var epochTime = parseInt(version.slice(0, epochLength)); 55 var epochTime = parseInt(version.slice(0, epochLength));
56 var date = new Date(epochTime); 56 var date = new Date(epochTime);
57 return date.toString(); 57 return date.toString();
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 'onReceivedListOfTypes', 192 'onReceivedListOfTypes',
193 onReceivedListOfTypes); 193 onReceivedListOfTypes);
194 chrome.sync.requestListOfTypes(); 194 chrome.sync.requestListOfTypes();
195 }); 195 });
196 196
197 var dumpToFileLink = $('dump-to-file'); 197 var dumpToFileLink = $('dump-to-file');
198 dumpToFileLink.addEventListener('click', function(event) { 198 dumpToFileLink.addEventListener('click', function(event) {
199 chrome.sync.getAllNodes(triggerDataDownload); 199 chrome.sync.getAllNodes(triggerDataDownload);
200 }); 200 });
201 })(); 201 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/sync_internals/node_browser.html » ('j') | sync/syncable/model_type.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698