Chromium Code Reviews| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 260 if (chrome_launcher::CreateLaunchCommandLine(&command_line)) { | 260 if (chrome_launcher::CreateLaunchCommandLine(&command_line)) { |
| 261 command_line->AppendSwitchASCII(switches::kAutomationClientChannelID, | 261 command_line->AppendSwitchASCII(switches::kAutomationClientChannelID, |
| 262 channel_id); | 262 channel_id); |
| 263 | 263 |
| 264 // Run Chrome in Chrome Frame mode. In practice, this modifies the paths | 264 // Run Chrome in Chrome Frame mode. In practice, this modifies the paths |
| 265 // and registry keys that Chrome looks in via the BrowserDistribution | 265 // and registry keys that Chrome looks in via the BrowserDistribution |
| 266 // mechanism. | 266 // mechanism. |
| 267 command_line->AppendSwitch(switches::kChromeFrame); | 267 command_line->AppendSwitch(switches::kChromeFrame); |
| 268 | 268 |
| 269 // Chrome Frame never wants Chrome to start up with a First Run UI. | 269 // Chrome Frame never wants Chrome to start up with a First Run UI. |
| 270 command_line->AppendSwitch(switches::kNoFirstRun); | 270 command_line->AppendSwitch(switches::kSkipFirstRun); |
|
grt (UTC plus 2)
2013/07/30 02:48:16
GCF uses a different user data dir than Chrome, so
gab
2013/07/30 14:10:17
Actually, for user-level the First Run beacon is d
grt (UTC plus 2)
2013/07/30 14:21:11
Ah. Right you are, sir. The beacon is put in the A
| |
| 271 | 271 |
| 272 // Chrome Frame never wants to run background extensions since they | 272 // Chrome Frame never wants to run background extensions since they |
| 273 // interfere with in-use updates. | 273 // interfere with in-use updates. |
| 274 command_line->AppendSwitch(switches::kDisableBackgroundMode); | 274 command_line->AppendSwitch(switches::kDisableBackgroundMode); |
| 275 | 275 |
| 276 command_line->AppendSwitch(switches::kDisablePopupBlocking); | 276 command_line->AppendSwitch(switches::kDisablePopupBlocking); |
| 277 | 277 |
| 278 #if defined(GOOGLE_CHROME_BUILD) | 278 #if defined(GOOGLE_CHROME_BUILD) |
| 279 // Chrome Frame should use the native print dialog. | 279 // Chrome Frame should use the native print dialog. |
| 280 command_line->AppendSwitch(switches::kDisablePrintPreview); | 280 command_line->AppendSwitch(switches::kDisablePrintPreview); |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1286 const net::URLRequestStatus& status) { | 1286 const net::URLRequestStatus& status) { |
| 1287 automation_server_->Send(new AutomationMsg_RequestEnd( | 1287 automation_server_->Send(new AutomationMsg_RequestEnd( |
| 1288 tab_->handle(), request_id, status)); | 1288 tab_->handle(), request_id, status)); |
| 1289 } | 1289 } |
| 1290 | 1290 |
| 1291 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, | 1291 void ChromeFrameAutomationClient::OnCookiesRetrieved(bool success, |
| 1292 const GURL& url, const std::string& cookie_string, int cookie_id) { | 1292 const GURL& url, const std::string& cookie_string, int cookie_id) { |
| 1293 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( | 1293 automation_server_->Send(new AutomationMsg_GetCookiesHostResponse( |
| 1294 tab_->handle(), success, url, cookie_string, cookie_id)); | 1294 tab_->handle(), success, url, cookie_string, cookie_id)); |
| 1295 } | 1295 } |
| OLD | NEW |