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

Unified Diff: chrome_frame/chrome_frame_automation.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_frame/chrome_frame_automation.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_automation.cc
===================================================================
--- chrome_frame/chrome_frame_automation.cc (revision 31172)
+++ chrome_frame/chrome_frame_automation.cc (working copy)
@@ -753,7 +753,13 @@
if (!is_initialized())
return;
- automation_server_->SetEnableExtensionAutomation(functions_enabled);
+ // We are doing initialization, so there is no need to reset extension
+ // automation, only to set it. Also, we want to avoid resetting extension
+ // automation that some other automation client has set up. Therefore only
+ // send the message if we are going to enable automation of some functions.
+ if (functions_enabled.size() > 0) {
+ tab_->SetEnableExtensionAutomation(functions_enabled);
+ }
}
// Invoked in launch background thread.
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698