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

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

Issue 225183018: Move feedback files into src/components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to latest Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 localStrings; 5 var localStrings;
6 6
7 // Contents of lines that act as delimiters for multi-line values. 7 // Contents of lines that act as delimiters for multi-line values.
8 var DELIM_START = '---------- START ----------'; 8 var DELIM_START = '---------- START ----------';
9 var DELIM_END = '---------- END ----------'; 9 var DELIM_END = '---------- END ----------';
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return false; 142 return false;
143 } 143 }
144 144
145 var name = lines[i].substring(0, delimiter); 145 var name = lines[i].substring(0, delimiter);
146 var value = ''; 146 var value = '';
147 // Set value if non-empty 147 // Set value if non-empty
148 if (lines[i].length > delimiter + 1) 148 if (lines[i].length > delimiter + 1)
149 value = lines[i].substring(delimiter + 1); 149 value = lines[i].substring(delimiter + 1);
150 150
151 // Delimiters are based on kMultilineIndicatorString, kMultilineStartString, 151 // Delimiters are based on kMultilineIndicatorString, kMultilineStartString,
152 // and kMultilineEndString in chrome/browser/feedback/feedback_data.cc. 152 // and kMultilineEndString in components/feedback/feedback_data.cc.
153 // If these change, we should check for both the old and new versions. 153 // If these change, we should check for both the old and new versions.
154 if (value == '<multiline>') { 154 if (value == '<multiline>') {
155 // Skip start delimiter. 155 // Skip start delimiter.
156 if (i == len - 1 || 156 if (i == len - 1 ||
157 lines[++i].indexOf(DELIM_START) == -1) 157 lines[++i].indexOf(DELIM_START) == -1)
158 return false; 158 return false;
159 159
160 ++i; 160 ++i;
161 value = ''; 161 value = '';
162 // Append lines between start and end delimiters. 162 // Append lines between start and end delimiters.
(...skipping 20 matching lines...) Expand all
183 183
184 $('collapseAll').onclick = collapseAll; 184 $('collapseAll').onclick = collapseAll;
185 $('expandAll').onclick = expandAll; 185 $('expandAll').onclick = expandAll;
186 186
187 var tp = $('t'); 187 var tp = $('t');
188 tp.addEventListener('dragover', handleDragOver, false); 188 tp.addEventListener('dragover', handleDragOver, false);
189 tp.addEventListener('drop', handleDrop, false); 189 tp.addEventListener('drop', handleDrop, false);
190 190
191 collapseMultiLineStrings(); 191 collapseMultiLineStrings();
192 }); 192 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698