diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 21:06:57 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-11 21:06:57 +0000 |
commit | 4d434a1a7fe5931235d94e5298e1793211ba03b9 (patch) | |
tree | e4569a9083446b2800d329ad8b00fbf3290a6d7a | |
parent | 217de1e561595ff9b4a182b52fdfbcacd4945c11 (diff) | |
download | chromium_src-4d434a1a7fe5931235d94e5298e1793211ba03b9.zip chromium_src-4d434a1a7fe5931235d94e5298e1793211ba03b9.tar.gz chromium_src-4d434a1a7fe5931235d94e5298e1793211ba03b9.tar.bz2 |
Changing the AutomationMsg_SavePackageShouldPromptUser message to a sync message
to fix the SavePage tests on Vista.
TBR=jam
Review URL: http://codereview.chromium.org/21265
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9592 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/automation/automation_provider.cc | 3 | ||||
-rw-r--r-- | chrome/browser/automation/automation_provider.h | 3 | ||||
-rw-r--r-- | chrome/test/automation/automation_messages_internal.h | 4 |
3 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc index ce3e169..d6cf19b 100644 --- a/chrome/browser/automation/automation_provider.cc +++ b/chrome/browser/automation/automation_provider.cc @@ -2596,7 +2596,6 @@ void AutomationProvider::OverrideEncoding(int tab_handle, } } -void AutomationProvider::SavePackageShouldPromptUser( - const IPC::Message& message, bool should_prompt) { +void AutomationProvider::SavePackageShouldPromptUser(bool should_prompt) { SavePackage::SetShouldPromptUser(should_prompt); } diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h index 8597b99..06d7440 100644 --- a/chrome/browser/automation/automation_provider.h +++ b/chrome/browser/automation/automation_provider.h @@ -387,8 +387,7 @@ class AutomationProvider : public base::RefCounted<AutomationProvider>, const std::wstring& encoding_name, bool* success); - void SavePackageShouldPromptUser(const IPC::Message& message, - bool should_prompt); + void SavePackageShouldPromptUser(bool should_prompt); // Convert a tab handle into a WebContents. If |tab| is non-NULL a pointer // to the tab is also returned. Returns NULL in case of failure or if the tab diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h index f73c252..06a76cf 100644 --- a/chrome/test/automation/automation_messages_internal.h +++ b/chrome/test/automation/automation_messages_internal.h @@ -847,7 +847,7 @@ IPC_BEGIN_MESSAGES(Automation) // Used to disable the dialog box that prompts the user for a path when // saving a web page. - IPC_MESSAGE_ROUTED1(AutomationMsg_SavePackageShouldPromptUser, - bool /* false if we want to not show the dialog */) + IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_SavePackageShouldPromptUser, + bool /* false if we want to not show the dialog */) IPC_END_MESSAGES(Automation) |