There is a new INSERTED type of ChangeCause

For the purpose of compatibility, we treat it as "explicit".
This commit is contained in:
Cheng Zhao 2017-01-25 15:38:49 +09:00 committed by Kevin Sawicki
parent 09fcb7fb27
commit 6165d36351

View file

@ -60,6 +60,7 @@ struct Converter<net::CookieStore::ChangeCause> {
static v8::Local<v8::Value> ToV8(v8::Isolate* isolate,
const net::CookieStore::ChangeCause& val) {
switch (val) {
case net::CookieStore::ChangeCause::INSERTED:
case net::CookieStore::ChangeCause::EXPLICIT:
return mate::StringToV8(isolate, "explicit");
case net::CookieStore::ChangeCause::OVERWRITE: