OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 | 263 |
264 // Chrome Frame never wants Chrome to start up with a First Run UI. | 264 // Chrome Frame never wants Chrome to start up with a First Run UI. |
265 command_line->AppendSwitch(switches::kNoFirstRun); | 265 command_line->AppendSwitch(switches::kNoFirstRun); |
266 | 266 |
267 // Chrome Frame never wants to run background extensions since they | 267 // Chrome Frame never wants to run background extensions since they |
268 // interfere with in-use updates. | 268 // interfere with in-use updates. |
269 command_line->AppendSwitch(switches::kDisableBackgroundMode); | 269 command_line->AppendSwitch(switches::kDisableBackgroundMode); |
270 | 270 |
271 command_line->AppendSwitch(switches::kDisablePopupBlocking); | 271 command_line->AppendSwitch(switches::kDisablePopupBlocking); |
272 | 272 |
| 273 #if defined(GOOGLE_CHROME_BUILD) |
| 274 // Chrome Frame should use the native print dialog. |
| 275 command_line->AppendSwitch(switches::kDisablePrintPreview); |
| 276 #endif |
| 277 |
273 // Disable the "Whoa! Chrome has crashed." dialog, because that isn't very | 278 // Disable the "Whoa! Chrome has crashed." dialog, because that isn't very |
274 // useful for Chrome Frame users. | 279 // useful for Chrome Frame users. |
275 #ifndef NDEBUG | 280 #ifndef NDEBUG |
276 command_line->AppendSwitch(switches::kNoErrorDialogs); | 281 command_line->AppendSwitch(switches::kNoErrorDialogs); |
277 #endif | 282 #endif |
278 | 283 |
279 // In headless mode runs like reliability test runs we want full crash dumps | 284 // In headless mode runs like reliability test runs we want full crash dumps |
280 // from chrome. | 285 // from chrome. |
281 if (IsHeadlessMode()) | 286 if (IsHeadlessMode()) |
282 command_line->AppendSwitch(switches::kFullMemoryCrashReport); | 287 command_line->AppendSwitch(switches::kFullMemoryCrashReport); |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 const net::URLRequestStatus& status) { | 1271 const net::URLRequestStatus& status) { |
1267 automation_server_->Send(new AutomationMsg_RequestEnd( | 1272 automation_server_->Send(new AutomationMsg_RequestEnd( |
1268 tab_->handle(), request_id, status)); | 1273 tab_->handle(), request_id, status)); |
1269 } | 1274 } |
1270 | 1275 |
1271 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1276 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
1272 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1277 const GURL& url, const std::string& cookie_string, int cookie_id) { |
1273 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( | 1278 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( |
1274 tab_->handle(), success, url, cookie_string, cookie_id)); | 1279 tab_->handle(), success, url, cookie_string, cookie_id)); |
1275 } | 1280 } |
OLD | NEW |