File tree 1 file changed +6
-2
lines changed
chromium_src/third_party/blink/renderer/core/execution_context
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -148,10 +148,14 @@ BraveSessionCache::BraveSessionCache(ExecutionContext& context)
148
148
.Utf8 ();
149
149
if (domain.empty ())
150
150
return ;
151
+
151
152
base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess ();
152
- DCHECK (cmd_line->HasSwitch (kBraveSessionToken ));
153
- base::StringToUint64 (cmd_line->GetSwitchValueASCII (kBraveSessionToken ),
153
+ base::StringToUint64 (cmd_line->HasSwitch (kBraveSessionToken )
154
+ ? cmd_line->GetSwitchValueASCII (kBraveSessionToken )
155
+ // https://github.com/brave/brave-browser/issues/22021
156
+ : " 12345" ,
154
157
&session_key_);
158
+
155
159
crypto::HMAC h (crypto::HMAC::SHA256);
156
160
CHECK (h.Init (reinterpret_cast <const unsigned char *>(&session_key_),
157
161
sizeof session_key_));
You can’t perform that action at this time.
0 commit comments