| Index: tools/json_schema_compiler/cc_generator.py
|
| diff --git a/tools/json_schema_compiler/cc_generator.py b/tools/json_schema_compiler/cc_generator.py
|
| index 68751871ced41b8024e9e2067e5e863dfbd54c31..d09d32584754bfee863b2672e1a038951b3eaa5a 100644
|
| --- a/tools/json_schema_compiler/cc_generator.py
|
| +++ b/tools/json_schema_compiler/cc_generator.py
|
| @@ -420,7 +420,7 @@ class CCGenerator(object):
|
| failure_value = 'scoped_ptr<Params>()'
|
| c.Append()
|
| value_var = param.unix_name + '_value'
|
| - (c.Append('base::Value* %(value_var)s = NULL;')
|
| + (c.Append('const base::Value* %(value_var)s = NULL;')
|
| .Append('if (args.Get(%(i)s, &%(value_var)s) &&\n'
|
| ' !%(value_var)s->IsType(base::Value::TYPE_NULL))')
|
| .Sblock('{')
|
|
|