diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 20:51:01 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-23 20:51:01 +0000 |
commit | 3921d1954d9dfe490d179fe2c750bcab4980d533 (patch) | |
tree | 37d27749acb449a9807b4b4c355edcaf19fa5f57 /chrome_frame/test/chrome_frame_automation_mock.h | |
parent | 21805a1bb44a59bfbb3ff1741b3efd2bc4e0667e (diff) | |
download | chromium_src-3921d1954d9dfe490d179fe2c750bcab4980d533.zip chromium_src-3921d1954d9dfe490d179fe2c750bcab4980d533.tar.gz chromium_src-3921d1954d9dfe490d179fe2c750bcab4980d533.tar.bz2 |
Revert 42366 - Allow TabContentsDelegate classes to specify whether InfoBars are enabled.
Allow ChromeFrame to pass infobar enabled parameter to ExternalTabContainer.
BUG=2444936
Patch contributed by ericdingle@google.com
Original review at http://codereview.chromium.org/890005
TBR=joi@chromium.org
Review URL: http://codereview.chromium.org/1205001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/chrome_frame_automation_mock.h')
-rw-r--r-- | chrome_frame/test/chrome_frame_automation_mock.h | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/chrome_frame/test/chrome_frame_automation_mock.h b/chrome_frame/test/chrome_frame_automation_mock.h index d751f1b..6fea200 100644 --- a/chrome_frame/test/chrome_frame_automation_mock.h +++ b/chrome_frame/test/chrome_frame_automation_mock.h @@ -20,23 +20,13 @@ class AutomationMockDelegate AutomationMockDelegate(MessageLoop* caller_message_loop, int launch_timeout, bool perform_version_check, const std::wstring& profile_name, - const std::wstring& extra_chrome_arguments, bool incognito, - bool is_widget_mode) + const std::wstring& extra_chrome_arguments, bool incognito) : caller_message_loop_(caller_message_loop), is_connected_(false), navigation_result_(false) { test_server_.SetUp(); automation_client_ = new ChromeFrameAutomationClient; - ChromeFrameLaunchParams cfp = { - launch_timeout, - GURL(), - GURL(), - profile_name, - extra_chrome_arguments, - perform_version_check, - incognito, - is_widget_mode - }; - automation_client_->Initialize(this, cfp); + automation_client_->Initialize(this, launch_timeout, perform_version_check, + profile_name, extra_chrome_arguments, incognito); } ~AutomationMockDelegate() { if (automation_client_.get()) { @@ -140,8 +130,7 @@ class AutomationMockLaunch typedef AutomationMockDelegate<AutomationMockLaunch> Base; AutomationMockLaunch(MessageLoop* caller_message_loop, int launch_timeout) - : Base(caller_message_loop, launch_timeout, true, L"", L"", false, - false) { + : Base(caller_message_loop, launch_timeout, true, L"", L"", false) { } virtual void OnAutomationServerReady() { Base::OnAutomationServerReady(); @@ -158,8 +147,7 @@ class AutomationMockNavigate typedef AutomationMockDelegate<AutomationMockNavigate> Base; AutomationMockNavigate(MessageLoop* caller_message_loop, int launch_timeout) - : Base(caller_message_loop, launch_timeout, true, L"", L"", false, - false) { + : Base(caller_message_loop, launch_timeout, true, L"", L"", false) { } virtual void OnLoad(int tab_handle, const GURL& url) { Base::OnLoad(tab_handle, url); @@ -173,7 +161,7 @@ class AutomationMockPostMessage typedef AutomationMockDelegate<AutomationMockPostMessage> Base; AutomationMockPostMessage(MessageLoop* caller_message_loop, int launch_timeout) - : Base(caller_message_loop, launch_timeout, true, L"", L"", false, false), + : Base(caller_message_loop, launch_timeout, true, L"", L"", false), postmessage_result_(false) {} bool postmessage_result() const { return postmessage_result_; @@ -201,7 +189,7 @@ class AutomationMockHostNetworkRequestStart typedef AutomationMockDelegate<AutomationMockHostNetworkRequestStart> Base; AutomationMockHostNetworkRequestStart(MessageLoop* caller_message_loop, int launch_timeout) - : Base(caller_message_loop, launch_timeout, true, L"", L"", false, false), + : Base(caller_message_loop, launch_timeout, true, L"", L"", false), request_start_result_(false) { if (automation()) { automation()->set_use_chrome_network(false); |