Description was changed from ========== Fix names of local constants after blink rename. The blink ...
3 years, 8 months ago
(2017-04-10 14:30:29 UTC)
#1
Description was changed from
==========
Fix names of local constants after blink rename.
The blink rename script renamed some constant const kFoos to k_foos.
Undo that again manually.
No intended behavior change.
BUG=578344
==========
to
==========
Fix names of local constants after blink rename.
The blink rename script renamed some constant const kFoos to k_foos.
Undo that again manually.
No intended behavior change.
BUG=578344
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng
==========
Nico
The CQ bit was checked by thakis@chromium.org to run a CQ dry run
3 years, 8 months ago
(2017-04-10 14:30:34 UTC)
#2
https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/core/frame/DOMTimerTest.cpp File third_party/WebKit/Source/core/frame/DOMTimerTest.cpp (right): https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/core/frame/DOMTimerTest.cpp#newcode96 third_party/WebKit/Source/core/frame/DOMTimerTest.cpp:96: const char* g_k_set_interval_script_text = There's also this constant that ...
3 years, 8 months ago
(2017-04-10 14:55:43 UTC)
#12
https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/frame/DOMTimerTest.cpp (right):
https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/frame/DOMTimerTest.cpp:96: const char*
g_k_set_interval_script_text =
There's also this constant that got renamed.
Sorry the constants in this file are my fault due to failure to notice which
directory I was in while writing the test.
I'm going to fix this in a change I'm about to land so don't worry about fixing
this one, but it's worth looking to see if there are other cases like this.
Nico
Description was changed from ========== Fix names of local constants after blink rename. The blink ...
3 years, 8 months ago
(2017-04-10 15:18:21 UTC)
#13
Description was changed from
==========
Fix names of local constants after blink rename.
The blink rename script renamed some constant const kFoos to k_foos.
Undo that again manually.
No intended behavior change.
BUG=578344
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng
==========
to
==========
Fix names of local constants after blink rename.
The blink rename script renamed some constant const kFoos to k_foos.
Undo that again manually.
No intended behavior change.
BUG=578344,675877
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng
==========
Nico
https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/core/frame/DOMTimerTest.cpp File third_party/WebKit/Source/core/frame/DOMTimerTest.cpp (right): https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/core/frame/DOMTimerTest.cpp#newcode96 third_party/WebKit/Source/core/frame/DOMTimerTest.cpp:96: const char* g_k_set_interval_script_text = On 2017/04/10 14:55:43, Dan Elphick ...
3 years, 8 months ago
(2017-04-10 15:21:40 UTC)
#14
https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/frame/DOMTimerTest.cpp (right):
https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/frame/DOMTimerTest.cpp:96: const char*
g_k_set_interval_script_text =
On 2017/04/10 14:55:43, Dan Elphick wrote:
> There's also this constant that got renamed.
>
> Sorry the constants in this file are my fault due to failure to notice which
> directory I was in while writing the test.
Can you expand on this? The idea behind all this renaming is that it shouldn't
be necessary any more to be aware of which directory you're in since style is
(roughly) the same everywhere now.
>
> I'm going to fix this in a change I'm about to land so don't worry about
fixing
> this one, but it's worth looking to see if there are other cases like this.
Thanks!
Looks like there are a few more:
https://cs.chromium.org/search/?q=g_k_+file:webkit+package:%5Echromium$&type=cs
But many of those, while called kFoo, aren't actually constant.
(This one isn't either -- it needs to be either `const char
kSetIntervalScriptText[]` or `const char* const kSet...` -- else it does point
to constant memory but the pointer itself isn't constant. Right now, doing
`g_k_set_... = "asdf"` will compile fine and make the pointer point to another
constant string.)
3 years, 8 months ago
(2017-04-10 15:33:58 UTC)
#15
https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/frame/DOMTimerTest.cpp (right):
https://codereview.chromium.org/2812643002/diff/1/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/frame/DOMTimerTest.cpp:96: const char*
g_k_set_interval_script_text =
On 2017/04/10 15:21:40, Nico wrote:
> On 2017/04/10 14:55:43, Dan Elphick wrote:
> > There's also this constant that got renamed.
> >
> > Sorry the constants in this file are my fault due to failure to notice which
> > directory I was in while writing the test.
>
> Can you expand on this? The idea behind all this renaming is that it shouldn't
> be necessary any more to be aware of which directory you're in since style is
> (roughly) the same everywhere now.
I just meant I created these constants before you renamed them using the new
style and not the old style, which resulted in this extra CL. I'm very happy
with your change as now I only need to remember one style!
> > I'm going to fix this in a change I'm about to land so don't worry about
> fixing
> > this one, but it's worth looking to see if there are other cases like this.
>
> Thanks!
>
> Looks like there are a few more:
>
https://cs.chromium.org/search/?q=g_k_+file:webkit+package:%5Echromium$&type=cs
>
> But many of those, while called kFoo, aren't actually constant.
>
> (This one isn't either -- it needs to be either `const char
> kSetIntervalScriptText[]` or `const char* const kSet...` -- else it does point
> to constant memory but the pointer itself isn't constant. Right now, doing
> `g_k_set_... = "asdf"` will compile fine and make the pointer point to another
> constant string.)
You're right. I'll fix this as well.
commit-bot: I haz the power
CQ is committing da patch. Bot data: {"patchset_id": 1, "attempt_start_ts": 1491834790942150, "parent_rev": "8b2491697f386b054dd28549f0c66d717f020d0d", "commit_rev": "9b0611279ba80484dfe17163519cabbd5939c935"}
3 years, 8 months ago
(2017-04-10 15:54:56 UTC)
#16
CQ is committing da patch.
Bot data: {"patchset_id": 1, "attempt_start_ts": 1491834790942150, "parent_rev":
"8b2491697f386b054dd28549f0c66d717f020d0d", "commit_rev":
"9b0611279ba80484dfe17163519cabbd5939c935"}
commit-bot: I haz the power
Description was changed from ========== Fix names of local constants after blink rename. The blink ...
3 years, 8 months ago
(2017-04-10 15:55:53 UTC)
#17
Message was sent while issue was closed.
Description was changed from
==========
Fix names of local constants after blink rename.
The blink rename script renamed some constant const kFoos to k_foos.
Undo that again manually.
No intended behavior change.
BUG=578344,675877
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng
==========
to
==========
Fix names of local constants after blink rename.
The blink rename script renamed some constant const kFoos to k_foos.
Undo that again manually.
No intended behavior change.
BUG=578344,675877
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng
Review-Url: https://codereview.chromium.org/2812643002
Cr-Commit-Position: refs/heads/master@{#463281}
Committed:
https://chromium.googlesource.com/chromium/src/+/9b0611279ba80484dfe17163519c...
==========
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/9b0611279ba80484dfe17163519cabbd5939c935
3 years, 8 months ago
(2017-04-10 15:55:55 UTC)
#18
Issue 2812643002: Fix names of local constants after blink rename.
(Closed)
Created 3 years, 8 months ago by Nico
Modified 3 years, 8 months ago
Reviewers: dcheng, dglazkov, Dan Elphick
Base URL:
Comments: 4