| 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 109c13b0a22b968b83851312ab9a0f3fe72a0a65..e4e1d539e1308ea7055e465bc3ca34580cbeea5a 100644
|
| --- a/chrome/browser/automation/testing_automation_provider.cc
|
| +++ b/chrome/browser/automation/testing_automation_provider.cc
|
| @@ -419,6 +419,7 @@ void TestingAutomationProvider::OnMessageReceived(
|
| IPC_MESSAGE_HANDLER(AutomationMsg_ShutdownSessionService,
|
| ShutdownSessionService)
|
| IPC_MESSAGE_HANDLER(AutomationMsg_SetContentSetting, SetContentSetting)
|
| + IPC_MESSAGE_HANDLER(AutomationMsg_LoadBlockedPlugins, LoadBlockedPlugins)
|
| IPC_MESSAGE_HANDLER(AutomationMsg_ResetToDefaultTheme, ResetToDefaultTheme)
|
|
|
| IPC_MESSAGE_UNHANDLED(AutomationProvider::OnMessageReceived(message));
|
| @@ -4052,6 +4053,21 @@ void TestingAutomationProvider::SetContentSetting(
|
| }
|
| }
|
|
|
| +void TestingAutomationProvider::LoadBlockedPlugins(int tab_handle,
|
| + bool* success) {
|
| + *success = false;
|
| + if (tab_tracker_->ContainsHandle(tab_handle)) {
|
| + NavigationController* nav = tab_tracker_->GetResource(tab_handle);
|
| + if (!nav)
|
| + return;
|
| + TabContents* contents = nav->tab_contents();
|
| + if (!contents)
|
| + return;
|
| + contents->render_view_host()->LoadBlockedPlugins();
|
| + *success = true;
|
| + }
|
| +}
|
| +
|
| void TestingAutomationProvider::ResetToDefaultTheme() {
|
| profile_->ClearTheme();
|
| }
|
|
|