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

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: Next iteration Created 9 years, 10 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 "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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698