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

Side by Side Diff: trunk/src/chrome/browser/profiles/profile_io_data.cc

Issue 280383002: Revert 269855 "Only commit cookie changes in prerenders after a ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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) 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/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 user->username_hash(), 359 user->username_hash(),
360 profile->GetPath(), 360 profile->GetPath(),
361 is_primary_user)); 361 is_primary_user));
362 } 362 }
363 } 363 }
364 if (params->username_hash.empty()) 364 if (params->username_hash.empty())
365 LOG(WARNING) << "no username_hash"; 365 LOG(WARNING) << "no username_hash";
366 #endif 366 #endif
367 367
368 params->profile = profile; 368 params->profile = profile;
369 params->prerender_tracker = g_browser_process->prerender_tracker();
370 profile_params_.reset(params.release()); 369 profile_params_.reset(params.release());
371 370
372 ChromeNetworkDelegate::InitializePrefsOnUIThread( 371 ChromeNetworkDelegate::InitializePrefsOnUIThread(
373 &enable_referrers_, 372 &enable_referrers_,
374 &enable_do_not_track_, 373 &enable_do_not_track_,
375 &force_safesearch_, 374 &force_safesearch_,
376 pref_service); 375 pref_service);
377 376
378 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy = 377 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy =
379 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 378 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
942 network_delegate->set_extension_info_map( 941 network_delegate->set_extension_info_map(
943 profile_params_->extension_info_map.get()); 942 profile_params_->extension_info_map.get());
944 #if defined(ENABLE_CONFIGURATION_POLICY) 943 #if defined(ENABLE_CONFIGURATION_POLICY)
945 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get()); 944 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get());
946 #endif 945 #endif
947 network_delegate->set_profile(profile_params_->profile); 946 network_delegate->set_profile(profile_params_->profile);
948 network_delegate->set_profile_path(profile_params_->path); 947 network_delegate->set_profile_path(profile_params_->path);
949 network_delegate->set_cookie_settings(profile_params_->cookie_settings.get()); 948 network_delegate->set_cookie_settings(profile_params_->cookie_settings.get());
950 network_delegate->set_enable_do_not_track(&enable_do_not_track_); 949 network_delegate->set_enable_do_not_track(&enable_do_not_track_);
951 network_delegate->set_force_google_safe_search(&force_safesearch_); 950 network_delegate->set_force_google_safe_search(&force_safesearch_);
952 network_delegate->set_prerender_tracker(profile_params_->prerender_tracker);
953 network_delegate_.reset(network_delegate); 951 network_delegate_.reset(network_delegate);
954 952
955 fraudulent_certificate_reporter_.reset( 953 fraudulent_certificate_reporter_.reset(
956 new chrome_browser_net::ChromeFraudulentCertificateReporter( 954 new chrome_browser_net::ChromeFraudulentCertificateReporter(
957 main_request_context_.get())); 955 main_request_context_.get()));
958 956
959 // NOTE: Proxy service uses the default io thread network delegate, not the 957 // NOTE: Proxy service uses the default io thread network delegate, not the
960 // delegate just created. 958 // delegate just created.
961 proxy_service_.reset( 959 proxy_service_.reset(
962 ProxyServiceFactory::CreateProxyService( 960 ProxyServiceFactory::CreateProxyService(
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 void ProfileIOData::SetCookieSettingsForTesting( 1171 void ProfileIOData::SetCookieSettingsForTesting(
1174 CookieSettings* cookie_settings) { 1172 CookieSettings* cookie_settings) {
1175 DCHECK(!cookie_settings_.get()); 1173 DCHECK(!cookie_settings_.get());
1176 cookie_settings_ = cookie_settings; 1174 cookie_settings_ = cookie_settings;
1177 } 1175 }
1178 1176
1179 void ProfileIOData::set_signin_names_for_testing( 1177 void ProfileIOData::set_signin_names_for_testing(
1180 SigninNamesOnIOThread* signin_names) { 1178 SigninNamesOnIOThread* signin_names) {
1181 signin_names_.reset(signin_names); 1179 signin_names_.reset(signin_names);
1182 } 1180 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698