OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/chromeos/login/login_utils.h" | 5 #include "chrome/browser/chromeos/login/login_utils.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 // This includes preconnect, autofill, metrics service to only name a few; | 249 // This includes preconnect, autofill, metrics service to only name a few; |
250 // see http://code.google.com/p/chromium/issues/detail?id=64339 for details. | 250 // see http://code.google.com/p/chromium/issues/detail?id=64339 for details. |
251 // | 251 // |
252 // TODO(mnissler) Revisit when support for device-specific policy arrives, at | 252 // TODO(mnissler) Revisit when support for device-specific policy arrives, at |
253 // which point the default request context can directly be managed through | 253 // which point the default request context can directly be managed through |
254 // device policy. | 254 // device policy. |
255 net::ProxyConfigService* proxy_config_service = | 255 net::ProxyConfigService* proxy_config_service = |
256 new PrefProxyConfigService( | 256 new PrefProxyConfigService( |
257 profile->GetProxyConfigTracker(), | 257 profile->GetProxyConfigTracker(), |
258 new chromeos::ProxyConfigService( | 258 new chromeos::ProxyConfigService( |
259 profile->GetChromeOSProxyConfigServiceImpl())); | 259 g_browser_process->chromeos_proxy_config_service_impl())); |
260 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, | 260 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, |
261 new ResetDefaultProxyConfigServiceTask( | 261 new ResetDefaultProxyConfigServiceTask( |
262 proxy_config_service)); | 262 proxy_config_service)); |
263 | 263 |
264 // Since we're doing parallel authentication, only new user sign in | 264 // Since we're doing parallel authentication, only new user sign in |
265 // would perform online auth before calling CompleteLogin. | 265 // would perform online auth before calling CompleteLogin. |
266 // For existing users there's usually a pending online auth request. | 266 // For existing users there's usually a pending online auth request. |
267 // Cookies will be fetched after it's is succeeded. | 267 // Cookies will be fetched after it's is succeeded. |
268 if (!pending_requests) { | 268 if (!pending_requests) { |
269 FetchCookies(profile, credentials); | 269 FetchCookies(profile, credentials); |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 BrowserInit browser_init; | 574 BrowserInit browser_init; |
575 int return_code; | 575 int return_code; |
576 browser_init.LaunchBrowser(*CommandLine::ForCurrentProcess(), | 576 browser_init.LaunchBrowser(*CommandLine::ForCurrentProcess(), |
577 profile, | 577 profile, |
578 FilePath(), | 578 FilePath(), |
579 true, | 579 true, |
580 &return_code); | 580 &return_code); |
581 } | 581 } |
582 | 582 |
583 } // namespace chromeos | 583 } // namespace chromeos |
OLD | NEW |