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

Side by Side Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 1176253002: Fix IsPrecachingAllowed() to check Sync instead of Data Saver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change IsSyncEnabledAndLoggedIn to CanSyncStart. Created 5 years, 6 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 (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/net/chrome_network_delegate.h" 5 #include "chrome/browser/net/chrome_network_delegate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "net/cookies/canonical_cookie.h" 47 #include "net/cookies/canonical_cookie.h"
48 #include "net/cookies/cookie_options.h" 48 #include "net/cookies/cookie_options.h"
49 #include "net/http/http_request_headers.h" 49 #include "net/http/http_request_headers.h"
50 #include "net/http/http_response_headers.h" 50 #include "net/http/http_response_headers.h"
51 #include "net/http/http_status_code.h" 51 #include "net/http/http_status_code.h"
52 #include "net/log/net_log.h" 52 #include "net/log/net_log.h"
53 #include "net/url_request/url_request.h" 53 #include "net/url_request/url_request.h"
54 54
55 #if defined(OS_ANDROID) 55 #if defined(OS_ANDROID)
56 #include "chrome/browser/io_thread.h" 56 #include "chrome/browser/io_thread.h"
57 #include "chrome/browser/precache/precache_manager_factory.h"
57 #include "components/precache/content/precache_manager.h" 58 #include "components/precache/content/precache_manager.h"
58 #include "components/precache/content/precache_manager_factory.h"
59 #endif 59 #endif
60 60
61 #if defined(OS_CHROMEOS) 61 #if defined(OS_CHROMEOS)
62 #include "base/sys_info.h" 62 #include "base/sys_info.h"
63 #include "chrome/common/chrome_switches.h" 63 #include "chrome/common/chrome_switches.h"
64 #endif 64 #endif
65 65
66 #if defined(ENABLE_CONFIGURATION_POLICY) 66 #if defined(ENABLE_CONFIGURATION_POLICY)
67 #include "components/policy/core/browser/url_blacklist_manager.h" 67 #include "components/policy/core/browser/url_blacklist_manager.h"
68 #endif 68 #endif
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 return experimental_web_platform_features_enabled_; 700 return experimental_web_platform_features_enabled_;
701 } 701 }
702 702
703 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader( 703 bool ChromeNetworkDelegate::OnCancelURLRequestWithPolicyViolatingReferrerHeader(
704 const net::URLRequest& request, 704 const net::URLRequest& request,
705 const GURL& target_url, 705 const GURL& target_url,
706 const GURL& referrer_url) const { 706 const GURL& referrer_url) const {
707 ReportInvalidReferrerSend(target_url, referrer_url); 707 ReportInvalidReferrerSend(target_url, referrer_url);
708 return true; 708 return true;
709 } 709 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698