| 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 |
| 299 // In headless mode runs like reliability test runs we want full crash dumps | 301 // In headless mode runs like reliability test runs we want full crash dumps |
| 300 // from chrome. | 302 // from chrome. |
| 301 if (IsHeadlessMode()) | 303 if (IsHeadlessMode()) |
| 302 command_line->AppendSwitch(switches::kFullMemoryCrashReport); | 304 command_line->AppendSwitch(switches::kFullMemoryCrashReport); |
| 303 | 305 |
| 304 DLOG(INFO) << "Profile path: " << params.profile_path.value(); | 306 DLOG(INFO) << "Profile path: " << params.profile_path.value(); |
| 305 command_line->AppendSwitchWithValue(switches::kUserDataDir, | 307 command_line->AppendSwitchWithValue(switches::kUserDataDir, |
| 306 params.profile_path.value()); | 308 params.profile_path.value()); |
| 307 | 309 |
| 308 std::wstring command_line_string(command_line->command_line_string()); | 310 std::wstring command_line_string(command_line->command_line_string()); |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 const URLRequestStatus& status) { | 1257 const URLRequestStatus& status) { |
| 1256 automation_server_->Send(new AutomationMsg_RequestEnd(0, tab_->handle(), | 1258 automation_server_->Send(new AutomationMsg_RequestEnd(0, tab_->handle(), |
| 1257 request_id, status)); | 1259 request_id, status)); |
| 1258 } | 1260 } |
| 1259 | 1261 |
| 1260 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1262 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
| 1261 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1263 const GURL& url, const std::string& cookie_string, int cookie_id) { |
| 1262 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse(0, | 1264 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse(0, |
| 1263 tab_->handle(), success, url, cookie_string, cookie_id)); | 1265 tab_->handle(), success, url, cookie_string, cookie_id)); |
| 1264 } | 1266 } |
| OLD | NEW |