Commit 5cd65f84 authored by Marina Sakai's avatar Marina Sakai Committed by Commit Bot

Replace GetSymbol using void* with new GetSymbol using SymbolKey in GetHistoryStateSymbol

This CL replaces the old GetSymbol, which uses void* as a key, with the new GetSymbol, which uses an instance of SymbolKey created in CL1877490 as a key, in GetHistoryStateSymbol.

Bug: 715418
Change-Id: Iab40205b1793c42ef8cedf82ee9f9ea2ee46c337
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1877501
Commit-Queue: Marina Sakai <marinasakai@google.com>
Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#709341}
parent c6d8983f
...@@ -207,8 +207,8 @@ class PLATFORM_EXPORT V8PrivateProperty { ...@@ -207,8 +207,8 @@ class PLATFORM_EXPORT V8PrivateProperty {
// This is a hack for PopStateEvent to get the same private property of // This is a hack for PopStateEvent to get the same private property of
// History, named State. // History, named State.
static Symbol GetHistoryStateSymbol(v8::Isolate* isolate) { static Symbol GetHistoryStateSymbol(v8::Isolate* isolate) {
static int private_property_key; static const SymbolKey private_property_key("History#State");
return GetSymbol(isolate, &private_property_key, "History#State"); return GetSymbol(isolate, private_property_key);
} }
// Returns a Symbol to access a private property. Symbol instances from same // Returns a Symbol to access a private property. Symbol instances from same
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment