Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2160)

Unified Diff: chrome/browser/automation/automation_provider_win.cc

Issue 366025: Modifying extension automation so that it is done through a particular... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/extensions/extension_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.";
+ }
+}
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/extensions/extension_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698