diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-07 21:43:20 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-07 21:43:20 +0000 |
commit | 5bcdb31304d676b38ce605180b7d8816e9a8b745 (patch) | |
tree | 8e12e0a79c722b6199fb067c2b020c40ec0ddfbf /chrome/test/automation/automation_proxy.h | |
parent | c2374c94270d846055463aa1e61f239957f82f09 (diff) | |
download | chromium_src-5bcdb31304d676b38ce605180b7d8816e9a8b745.zip chromium_src-5bcdb31304d676b38ce605180b7d8816e9a8b745.tar.gz chromium_src-5bcdb31304d676b38ce605180b7d8816e9a8b745.tar.bz2 |
Add a UI test to make sure we sanitize the filename
of files saved using the "Save page as..." menu item.
This involves adding a new automation provider method
for disabling the dialog prompting for a filename.
Review URL: http://codereview.chromium.org/16555
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/automation_proxy.h')
-rw-r--r-- | chrome/test/automation/automation_proxy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/test/automation/automation_proxy.h b/chrome/test/automation/automation_proxy.h index f068a0d..6632604 100644 --- a/chrome/test/automation/automation_proxy.h +++ b/chrome/test/automation/automation_proxy.h @@ -174,6 +174,11 @@ class AutomationProxy : public IPC::Channel::Listener, // load_time is how long, in ms, the tab contents took to load. void SignalNewTabUITab(int load_time); + // Set whether or not running the save page as... command show prompt the + // user for a download path. Returns true if the message is successfully + // sent. + bool SavePackageShouldPromptUser(bool should_prompt); + // Returns the ID of the automation IPC channel, so that it can be // passed to the app as a launch parameter. const std::wstring& channel_id() const { return channel_id_; } |