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

Side by Side Diff: content/shell/browser/layout_test/layout_test_url_request_context_getter.cc

Issue 2125523003: Rename setAlwaysAcceptCookies to setBlockThirdPartyCookies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/shell/browser/layout_test/layout_test_url_request_context_gett er.h" 5 #include "content/shell/browser/layout_test/layout_test_url_request_context_gett er.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 21 matching lines...) Expand all
32 net_log) { 32 net_log) {
33 // Must first be created on the UI thread. 33 // Must first be created on the UI thread.
34 DCHECK_CURRENTLY_ON(BrowserThread::UI); 34 DCHECK_CURRENTLY_ON(BrowserThread::UI);
35 } 35 }
36 36
37 LayoutTestURLRequestContextGetter::~LayoutTestURLRequestContextGetter() { 37 LayoutTestURLRequestContextGetter::~LayoutTestURLRequestContextGetter() {
38 } 38 }
39 39
40 std::unique_ptr<net::NetworkDelegate> 40 std::unique_ptr<net::NetworkDelegate>
41 LayoutTestURLRequestContextGetter::CreateNetworkDelegate() { 41 LayoutTestURLRequestContextGetter::CreateNetworkDelegate() {
42 ShellNetworkDelegate::SetAcceptAllCookies(false); 42 ShellNetworkDelegate::SetBlockThirdPartyCookies(true);
43 return base::WrapUnique(new ShellNetworkDelegate); 43 return base::WrapUnique(new ShellNetworkDelegate);
44 } 44 }
45 45
46 std::unique_ptr<net::ProxyConfigService> 46 std::unique_ptr<net::ProxyConfigService>
47 LayoutTestURLRequestContextGetter::GetProxyConfigService() { 47 LayoutTestURLRequestContextGetter::GetProxyConfigService() {
48 return nullptr; 48 return nullptr;
49 } 49 }
50 50
51 std::unique_ptr<net::ProxyService> 51 std::unique_ptr<net::ProxyService>
52 LayoutTestURLRequestContextGetter::GetProxyService() { 52 LayoutTestURLRequestContextGetter::GetProxyService() {
53 return net::ProxyService::CreateDirect(); 53 return net::ProxyService::CreateDirect();
54 } 54 }
55 55
56 bool LayoutTestURLRequestContextGetter::ShouldEnableReferrerPolicyHeader() { 56 bool LayoutTestURLRequestContextGetter::ShouldEnableReferrerPolicyHeader() {
57 return true; 57 return true;
58 } 58 }
59 59
60 } // namespace content 60 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/layout_test/layout_test_message_filter.cc ('k') | content/shell/browser/shell_network_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698