| Index: extensions/renderer/script_context.cc
|
| diff --git a/extensions/renderer/script_context.cc b/extensions/renderer/script_context.cc
|
| index 6a5b631179035859e3b0e53ea7a4cbaef968cac0..a1d8996a5daf4a604d2ad4a417b477dccf3c8d66 100644
|
| --- a/extensions/renderer/script_context.cc
|
| +++ b/extensions/renderer/script_context.cc
|
| @@ -210,7 +210,7 @@ v8::Local<v8::Value> ScriptContext::CallFunction(
|
| Feature::Availability ScriptContext::GetAvailability(
|
| const std::string& api_name) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| - if (api_name == "test") {
|
| + if (base::StartsWith(api_name, "test", base::CompareCase::SENSITIVE)) {
|
| bool allowed = base::CommandLine::ForCurrentProcess()->
|
| HasSwitch(::switches::kTestType);
|
| Feature::AvailabilityResult result =
|
|
|