OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome_frame/chrome_frame_automation.h" | 5 #include "chrome_frame/chrome_frame_automation.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/trace_event.h" | 10 #include "base/trace_event.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 command_line->AppendSwitch(switches::kNoFirstRun); | 289 command_line->AppendSwitch(switches::kNoFirstRun); |
290 | 290 |
291 command_line->AppendSwitch(switches::kDisablePopupBlocking); | 291 command_line->AppendSwitch(switches::kDisablePopupBlocking); |
292 | 292 |
293 // Disable the "Whoa! Chrome has crashed." dialog, because that isn't very | 293 // Disable the "Whoa! Chrome has crashed." dialog, because that isn't very |
294 // useful for Chrome Frame users. | 294 // useful for Chrome Frame users. |
295 #ifndef NDEBUG | 295 #ifndef NDEBUG |
296 command_line->AppendSwitch(switches::kNoErrorDialogs); | 296 command_line->AppendSwitch(switches::kNoErrorDialogs); |
297 #endif | 297 #endif |
298 | 298 |
299 command_line->AppendSwitch(switches::kEnableRendererAccessibility); | |
300 | |
301 // In headless mode runs like reliability test runs we want full crash dumps | 299 // In headless mode runs like reliability test runs we want full crash dumps |
302 // from chrome. | 300 // from chrome. |
303 if (IsHeadlessMode()) | 301 if (IsHeadlessMode()) |
304 command_line->AppendSwitch(switches::kFullMemoryCrashReport); | 302 command_line->AppendSwitch(switches::kFullMemoryCrashReport); |
305 | 303 |
306 DLOG(INFO) << "Profile path: " << params.profile_path.value(); | 304 DLOG(INFO) << "Profile path: " << params.profile_path.value(); |
307 command_line->AppendSwitchWithValue(switches::kUserDataDir, | 305 command_line->AppendSwitchWithValue(switches::kUserDataDir, |
308 params.profile_path.value()); | 306 params.profile_path.value()); |
309 | 307 |
310 std::wstring command_line_string(command_line->command_line_string()); | 308 std::wstring command_line_string(command_line->command_line_string()); |
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 const URLRequestStatus& status) { | 1255 const URLRequestStatus& status) { |
1258 automation_server_->Send(new AutomationMsg_RequestEnd(0, tab_->handle(), | 1256 automation_server_->Send(new AutomationMsg_RequestEnd(0, tab_->handle(), |
1259 request_id, status)); | 1257 request_id, status)); |
1260 } | 1258 } |
1261 | 1259 |
1262 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1260 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
1263 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1261 const GURL& url, const std::string& cookie_string, int cookie_id) { |
1264 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse(0, | 1262 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse(0, |
1265 tab_->handle(), success, url, cookie_string, cookie_id)); | 1263 tab_->handle(), success, url, cookie_string, cookie_id)); |
1266 } | 1264 } |
OLD | NEW |