| Index: chrome/browser/automation/automation_provider_win.cc
|
| ===================================================================
|
| --- chrome/browser/automation/automation_provider_win.cc (revision 31172)
|
| +++ chrome/browser/automation/automation_provider_win.cc (working copy)
|
| @@ -490,3 +490,18 @@
|
| *success = (::PostMessageW(window, WM_ENDSESSION, 0, 0) == TRUE);
|
| }
|
| }
|
| +
|
| +void AutomationProvider::SetEnableExtensionAutomation(
|
| + int tab_handle,
|
| + const std::vector<std::string>& functions_enabled) {
|
| + ExternalTabContainer* external_tab = GetExternalTabForHandle(tab_handle);
|
| + if (external_tab) {
|
| + external_tab->SetEnableExtensionAutomation(functions_enabled);
|
| + } else {
|
| + // Tab must exist, and must be an external tab so that its
|
| + // delegate has an on-empty
|
| + // implementation of ForwardMessageToExternalHost.
|
| + DLOG(WARNING) <<
|
| + "SetEnableExtensionAutomation called with invalid tab handle.";
|
| + }
|
| +}
|
|
|