Chromium Code Reviews| Index: chrome/browser/automation/testing_automation_provider.cc |
| diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc |
| index d1d0a40f35399f63d268214915791577a7674c58..01d6bdfbdbeceed42ddce72dcdabd7c794a588e9 100644 |
| --- a/chrome/browser/automation/testing_automation_provider.cc |
| +++ b/chrome/browser/automation/testing_automation_provider.cc |
| @@ -5885,15 +5885,15 @@ void TestingAutomationProvider::RefreshPolicies( |
| #endif |
| } |
| -static int AccessArray(const int arr[], int index) { |
| +static int AccessArray(const volatile int arr[], int index) { |
| return arr[index]; |
| } |
| void TestingAutomationProvider::SimulateAsanMemoryBug( |
| base::DictionaryValue* args, IPC::Message* reply_message) { |
| - int testarray[41]; |
| - AccessArray(testarray, 42); |
| + volatile int testarray[41]; |
|
Nirnimesh
2012/05/22 16:29:43
please make a note here why it's volatile.
|
| AutomationJSONReply(this, reply_message).SendSuccess(NULL); |
|
Nirnimesh
2012/05/22 16:29:43
Most pyauto automation hooks return _after_ they'v
|
| + AccessArray(testarray, 42); |
| } |
| void TestingAutomationProvider::GetIndicesFromTab( |