summaryrefslogtreecommitdiffstats
path: root/chrome_frame/chrome_frame_automation.cc
diff options
context:
space:
mode:
authormad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 19:58:32 +0000
committermad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 19:58:32 +0000
commitf701930f2094bea08a1aa8425c8d704b8f3ef579 (patch)
tree6e94e3064dae27712be507f744c3fb1a6480a241 /chrome_frame/chrome_frame_automation.cc
parentb03794d3a1bb536655207d73a78f115e3722893d (diff)
downloadchromium_src-f701930f2094bea08a1aa8425c8d704b8f3ef579.zip
chromium_src-f701930f2094bea08a1aa8425c8d704b8f3ef579.tar.gz
chromium_src-f701930f2094bea08a1aa8425c8d704b8f3ef579.tar.bz2
Committing for Eric Dingle.
http://codereview.chromium.org/890005 BUG=0 TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42800 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/chrome_frame_automation.cc')
-rw-r--r--chrome_frame/chrome_frame_automation.cc26
1 files changed, 10 insertions, 16 deletions
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index 8c1fb45..3c30d00 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -440,13 +440,10 @@ ChromeFrameAutomationClient::~ChromeFrameAutomationClient() {
bool ChromeFrameAutomationClient::Initialize(
ChromeFrameDelegate* chrome_frame_delegate,
- int automation_server_launch_timeout,
- bool perform_version_check,
- const FilePath& profile_path,
- const std::wstring& extra_chrome_arguments,
- bool incognito) {
+ const ChromeFrameLaunchParams& chrome_launch_params) {
DCHECK(!IsWindow());
chrome_frame_delegate_ = chrome_frame_delegate;
+ chrome_launch_params_ = chrome_launch_params;
ui_thread_id_ = PlatformThread::CurrentId();
#ifndef NDEBUG
// In debug mode give more time to work with a debugger.
@@ -454,10 +451,11 @@ bool ChromeFrameAutomationClient::Initialize(
// Don't use INFINITE (which is -1) or even MAXINT since we will convert
// from milliseconds to microseconds when stored in a base::TimeDelta,
// thus * 1000. An hour should be enough.
- automation_server_launch_timeout = 60 * 60 * 1000;
+ chrome_launch_params_.automation_server_launch_timeout = 60 * 60 * 1000;
} else {
- DCHECK_LT(automation_server_launch_timeout, MAXINT / 2000);
- automation_server_launch_timeout *= 2;
+ DCHECK_LT(chrome_launch_params_.automation_server_launch_timeout,
+ MAXINT / 2000);
+ chrome_launch_params_.automation_server_launch_timeout *= 2;
}
#endif // NDEBUG
@@ -480,14 +478,9 @@ bool ChromeFrameAutomationClient::Initialize(
// InitializeComplete is called successfully.
init_state_ = INITIALIZING;
- chrome_launch_params_.automation_server_launch_timeout =
- automation_server_launch_timeout;
- chrome_launch_params_.profile_path = profile_path;
- chrome_launch_params_.profile_name = profile_path.BaseName().value();
- chrome_launch_params_.extra_chrome_arguments = extra_chrome_arguments;
- chrome_launch_params_.perform_version_check = perform_version_check;
- chrome_launch_params_.url = navigate_after_initialization_ ? GURL() : url_;
- chrome_launch_params_.incognito_mode = incognito;
+ if (!navigate_after_initialization_) {
+ chrome_launch_params_.url = url_;
+ }
proxy_factory_->GetAutomationServer(
static_cast<ProxyFactory::LaunchDelegate*>(this),
@@ -830,6 +823,7 @@ void ChromeFrameAutomationClient::CreateExternalTab() {
handle_top_level_requests_,
chrome_launch_params_.url,
chrome_launch_params_.referrer,
+ !chrome_launch_params_.is_widget_mode // Infobars disabled in widget mode.
};
THREAD_SAFE_UMA_HISTOGRAM_CUSTOM_COUNTS(