Move set status code into error.
This commit is contained in:
parent
19e96cc212
commit
98adcac5df
1 changed files with 6 additions and 1 deletions
|
@ -99,8 +99,13 @@ void RunSetCookiesCallbackOnUIThread(const base::DictionaryValue* details,
|
|||
callback.Run(error, v8::Null(isolate));
|
||||
return;
|
||||
}
|
||||
if (!set_success) {
|
||||
v8::Local<v8::String> error = v8::String::NewFromUtf8(isolate,
|
||||
"Failed to set cookies");
|
||||
callback.Run(error, v8::Null(isolate));
|
||||
}
|
||||
|
||||
callback.Run(v8::Null(isolate), v8::Boolean::New(isolate, set_success));
|
||||
callback.Run(v8::Null(isolate), v8::Null(isolate));
|
||||
}
|
||||
|
||||
bool MatchesDomain(const base::DictionaryValue* filter,
|
||||
|
|
Loading…
Reference in a new issue