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

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

Issue 2336043007: Domain Reliability: Don't crash on shutdown with uploads pending (Closed)
Patch Set: No, really. Created 4 years 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 144
145 ChromeNetworkDelegate::ChromeNetworkDelegate( 145 ChromeNetworkDelegate::ChromeNetworkDelegate(
146 extensions::EventRouterForwarder* event_router, 146 extensions::EventRouterForwarder* event_router,
147 BooleanPrefMember* enable_referrers) 147 BooleanPrefMember* enable_referrers)
148 : profile_(nullptr), 148 : profile_(nullptr),
149 enable_referrers_(enable_referrers), 149 enable_referrers_(enable_referrers),
150 enable_do_not_track_(nullptr), 150 enable_do_not_track_(nullptr),
151 force_google_safe_search_(nullptr), 151 force_google_safe_search_(nullptr),
152 force_youtube_restrict_(nullptr), 152 force_youtube_restrict_(nullptr),
153 allowed_domains_for_apps_(nullptr), 153 allowed_domains_for_apps_(nullptr),
154 url_blacklist_manager_(nullptr), 154 url_blacklist_manager_(NULL),
155 domain_reliability_monitor_(nullptr),
156 experimental_web_platform_features_enabled_( 155 experimental_web_platform_features_enabled_(
157 base::CommandLine::ForCurrentProcess()->HasSwitch( 156 base::CommandLine::ForCurrentProcess()->HasSwitch(
158 switches::kEnableExperimentalWebPlatformFeatures)), 157 switches::kEnableExperimentalWebPlatformFeatures)),
159 data_use_aggregator_(nullptr), 158 data_use_aggregator_(nullptr),
160 is_data_usage_off_the_record_(true) { 159 is_data_usage_off_the_record_(true) {
161 DCHECK(enable_referrers); 160 DCHECK(enable_referrers);
162 extensions_delegate_.reset( 161 extensions_delegate_.reset(
163 ChromeExtensionsNetworkDelegate::Create(event_router)); 162 ChromeExtensionsNetworkDelegate::Create(event_router));
164 } 163 }
165 164
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 if (!data_use_aggregator_) 576 if (!data_use_aggregator_)
578 return; 577 return;
579 578
580 if (is_data_usage_off_the_record_) { 579 if (is_data_usage_off_the_record_) {
581 data_use_aggregator_->ReportOffTheRecordDataUse(tx_bytes, rx_bytes); 580 data_use_aggregator_->ReportOffTheRecordDataUse(tx_bytes, rx_bytes);
582 return; 581 return;
583 } 582 }
584 583
585 data_use_aggregator_->ReportDataUse(request, tx_bytes, rx_bytes); 584 data_use_aggregator_->ReportDataUse(request, tx_bytes, rx_bytes);
586 } 585 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698