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

Unified Diff: runtime/observatory/lib/src/elements/script_inset.dart

Issue 2298563002: Removed const from classes arrays in Observatory (Closed)
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/script_inset.dart
diff --git a/runtime/observatory/lib/src/elements/script_inset.dart b/runtime/observatory/lib/src/elements/script_inset.dart
index d968fe09bb17a26d8d05699a9df151aa085481f0..18ac0db6dc4099bcd5160170028c66fbec4c4174 100644
--- a/runtime/observatory/lib/src/elements/script_inset.dart
+++ b/runtime/observatory/lib/src/elements/script_inset.dart
@@ -584,7 +584,7 @@ class ScriptInsetElement extends HtmlElement implements Renderable {
ButtonElement _newRefreshButton() {
var button = new ButtonElement();
- button.classes = const ['refresh'];
+ button.classes = ['refresh'];
button.onClick.listen((_) async {
button.disabled = true;
await _refresh();
@@ -597,8 +597,8 @@ class ScriptInsetElement extends HtmlElement implements Renderable {
ButtonElement _newToggleProfileButton() {
ButtonElement button = new ButtonElement();
- button.classes = _includeProfile ? const ['toggle-profile', 'enabled']
- : const ['toggle-profile'];
+ button.classes = _includeProfile ? ['toggle-profile', 'enabled']
+ : ['toggle-profile'];
button.title = 'Toggle CPU profile information';
button.onClick.listen((_) async {
_includeProfile = !_includeProfile;
« no previous file with comments | « runtime/observatory/lib/src/elements/retaining_path.dart ('k') | runtime/observatory/lib/src/elements/script_view.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698