Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 6292017: Extended: Add "system" URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "app/app_switches.h" 9 #include "app/app_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // This includes preconnect, autofill, metrics service to only name a few; 253 // This includes preconnect, autofill, metrics service to only name a few;
254 // see http://code.google.com/p/chromium/issues/detail?id=64339 for details. 254 // see http://code.google.com/p/chromium/issues/detail?id=64339 for details.
255 // 255 //
256 // TODO(mnissler) Revisit when support for device-specific policy arrives, at 256 // TODO(mnissler) Revisit when support for device-specific policy arrives, at
257 // which point the default request context can directly be managed through 257 // which point the default request context can directly be managed through
258 // device policy. 258 // device policy.
259 net::ProxyConfigService* proxy_config_service = 259 net::ProxyConfigService* proxy_config_service =
260 new PrefProxyConfigService( 260 new PrefProxyConfigService(
261 profile->GetProxyConfigTracker(), 261 profile->GetProxyConfigTracker(),
262 new chromeos::ProxyConfigService( 262 new chromeos::ProxyConfigService(
263 profile->GetChromeOSProxyConfigServiceImpl())); 263 g_browser_process->chromeos_proxy_config_service_impl()));
264 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, 264 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
265 new ResetDefaultProxyConfigServiceTask( 265 new ResetDefaultProxyConfigServiceTask(
266 proxy_config_service)); 266 proxy_config_service));
267 267
268 // Since we're doing parallel authentication, only new user sign in 268 // Since we're doing parallel authentication, only new user sign in
269 // would perform online auth before calling CompleteLogin. 269 // would perform online auth before calling CompleteLogin.
270 // For existing users there's usually a pending online auth request. 270 // For existing users there's usually a pending online auth request.
271 // Cookies will be fetched after it's is succeeded. 271 // Cookies will be fetched after it's is succeeded.
272 if (!pending_requests) { 272 if (!pending_requests) {
273 FetchCookies(profile, credentials); 273 FetchCookies(profile, credentials);
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 BrowserInit browser_init; 590 BrowserInit browser_init;
591 int return_code; 591 int return_code;
592 browser_init.LaunchBrowser(*CommandLine::ForCurrentProcess(), 592 browser_init.LaunchBrowser(*CommandLine::ForCurrentProcess(),
593 profile, 593 profile,
594 FilePath(), 594 FilePath(),
595 true, 595 true,
596 &return_code); 596 &return_code);
597 } 597 }
598 598
599 } // namespace chromeos 599 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/chromeos/proxy_config_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698