| 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 afc251a4d660590022094a732d548c3ad5f630a6..b10ba5e5b75418331d0ae00cef0c2df23a67c2a3 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.cc
|
| +++ b/chrome/browser/automation/testing_automation_provider.cc
|
| @@ -3462,10 +3462,12 @@ void TestingAutomationProvider::PerformProtectorAction(
|
| reply.SendError("Missing 'action' value");
|
| return;
|
| }
|
| + protector::BaseSettingChange* change =
|
| + protector_service->GetLastChange();
|
| if (action == "apply_change")
|
| - protector_service->ApplyChange(browser);
|
| + protector_service->ApplyChange(change, browser);
|
| else if (action == "discard_change")
|
| - protector_service->DiscardChange(browser);
|
| + protector_service->DiscardChange(change, browser);
|
| else
|
| return reply.SendError("Invalid 'action' value");
|
| reply.SendSuccess(NULL);
|
|
|