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

Issue 2298563002: Removed const from classes arrays in Observatory (Closed)

Created:
4 years, 3 months ago by cbernaschina
Modified:
4 years, 3 months ago
Reviewers:
turnidge, rmacnak, Cutch
CC:
reviews_dartlang.org, rmacnak, Cutch, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -311 lines) Patch
M runtime/observatory/lib/src/elements/allocation_profile.dart View 5 chunks +47 lines, -46 lines 0 comments Download
M runtime/observatory/lib/src/elements/containers/virtual_collection.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/observatory/lib/src/elements/context_view.dart View 4 chunks +12 lines, -12 lines 0 comments Download
M runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart View 3 chunks +9 lines, -9 lines 0 comments Download
M runtime/observatory/lib/src/elements/cpu_profile_table.dart View 6 chunks +18 lines, -18 lines 0 comments Download
M runtime/observatory/lib/src/elements/eval_box.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M runtime/observatory/lib/src/elements/field_view.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/flag_list.dart View 1 chunk +5 lines, -5 lines 0 comments Download
M runtime/observatory/lib/src/elements/function_view.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/heap_map.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/heap_snapshot.dart View 4 chunks +17 lines, -17 lines 0 comments Download
M runtime/observatory/lib/src/elements/icdata_view.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/inbound_references.dart View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/instance_ref.dart View 6 chunks +7 lines, -7 lines 0 comments Download
M runtime/observatory/lib/src/elements/instance_view.dart View 21 chunks +112 lines, -112 lines 0 comments Download
M runtime/observatory/lib/src/elements/isolate/counter_chart.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/observatory/lib/src/elements/isolate/shared_summary.dart View 2 chunks +10 lines, -10 lines 0 comments Download
M runtime/observatory/lib/src/elements/library_view.dart View 6 chunks +9 lines, -9 lines 0 comments Download
M runtime/observatory/lib/src/elements/megamorphiccache_view.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/object_common.dart View 2 chunks +19 lines, -19 lines 0 comments Download
M runtime/observatory/lib/src/elements/object_view.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/objectpool_view.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M runtime/observatory/lib/src/elements/objectstore_view.dart View 2 chunks +5 lines, -5 lines 0 comments Download
M runtime/observatory/lib/src/elements/persistent_handles.dart View 5 chunks +13 lines, -13 lines 0 comments Download
M runtime/observatory/lib/src/elements/retaining_path.dart View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/script_inset.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/observatory/lib/src/elements/script_view.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/observatory/lib/src/elements/sentinel_view.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
cbernaschina
4 years, 3 months ago (2016-08-30 22:15:01 UTC) #2
turnidge
lgtm lgtm It occurs to me that we should take all of the content class ...
4 years, 3 months ago (2016-08-30 22:31:02 UTC) #3
cbernaschina
On 2016/08/30 22:31:02, turnidge wrote: > lgtm > > lgtm > > It occurs to ...
4 years, 3 months ago (2016-08-30 22:34:28 UTC) #4
cbernaschina
Committed patchset #1 (id:1) manually as 1a1224b1d3727c5b8a0d618940f3d47eaecadefa (presubmit successful).
4 years, 3 months ago (2016-08-30 22:38:18 UTC) #6
turnidge
4 years, 3 months ago (2016-08-31 03:02:31 UTC) #7
Message was sent while issue was closed.
Yeah, that sounds like a good idea.

On 2016/08/30 22:34:28, cbernaschina wrote:
> On 2016/08/30 22:31:02, turnidge wrote:
> > lgtm
> > 
> > lgtm
> > 
> > It occurs to me that we should take all of the content class names like...
> > 
> >   'content-centered-big'
> > 
> > ...and we should replace them with named constants to avoid accidental
> typos...
> > 
> >   contentCenteredBig or kContentCenteredBig or whatever our style is.
> > 
> > This is not a comment for this cl or even something you need to do, but it
> might
> > give us a little more protection against typos.
> 
> I think that an utility class like the one introduced for Uris can do it.
> We can even store the pre-computed lists there.
> 
> new DivElement()..classes = Styles.contentCenteredBig
> or
> new DivElement()..classes = Classes.contentCenteredBig

Powered by Google App Engine
This is Rietveld 408576698