Index: chrome/browser/automation/automation_provider.cc |
=================================================================== |
--- chrome/browser/automation/automation_provider.cc (revision 44838) |
+++ chrome/browser/automation/automation_provider.cc (working copy) |
@@ -567,6 +567,7 @@ |
IPC_MESSAGE_HANDLER_DELAY_REPLY(AutomationMsg_WaitForPopupMenuToOpen, |
WaitForPopupMenuToOpen) |
#endif |
+ IPC_MESSAGE_HANDLER(AutomationMsg_ResetToDefaultTheme, ResetToDefaultTheme) |
IPC_END_MESSAGE_MAP() |
} |
@@ -2793,7 +2794,7 @@ |
} |
void AutomationProvider::InstallExtensionAndGetHandle( |
- const FilePath& crx_path, IPC::Message* reply_message) { |
+ const FilePath& crx_path, bool with_ui, IPC::Message* reply_message) { |
ExtensionsService* service = profile_->GetExtensionsService(); |
ExtensionProcessManager* manager = profile_->GetExtensionProcessManager(); |
if (service && manager) { |
@@ -2804,10 +2805,12 @@ |
AutomationMsg_InstallExtensionAndGetHandle::ID, |
reply_message); |
+ ExtensionInstallUI* client = |
+ (with_ui ? new ExtensionInstallUI(profile_) : NULL); |
scoped_refptr<CrxInstaller> installer( |
new CrxInstaller(service->install_directory(), |
service, |
- NULL)); // silent install, no UI |
+ client)); |
installer->set_allow_privilege_increase(true); |
installer->InstallCrx(crx_path); |
} else { |
@@ -3007,3 +3010,7 @@ |
NOTIMPLEMENTED(); |
} |
#endif // !defined(TOOLKIT_VIEWS) |
+ |
+void AutomationProvider::ResetToDefaultTheme() { |
+ profile_->ClearTheme(); |
+} |