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

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

Issue 2462983003: Move data use measurement to DataUseNetworkDelegate (Closed)
Patch Set: Rebased Created 4 years, 1 month 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/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 1026
1027 main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli); 1027 main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli);
1028 1028
1029 std::unique_ptr<ChromeNetworkDelegate> network_delegate( 1029 std::unique_ptr<ChromeNetworkDelegate> network_delegate(
1030 new ChromeNetworkDelegate( 1030 new ChromeNetworkDelegate(
1031 #if BUILDFLAG(ENABLE_EXTENSIONS) 1031 #if BUILDFLAG(ENABLE_EXTENSIONS)
1032 io_thread_globals->extension_event_router_forwarder.get(), 1032 io_thread_globals->extension_event_router_forwarder.get(),
1033 #else 1033 #else
1034 NULL, 1034 NULL,
1035 #endif 1035 #endif
1036 &enable_referrers_, io_thread->GetMetricsDataUseForwarder())); 1036 &enable_referrers_));
1037 #if BUILDFLAG(ENABLE_EXTENSIONS) 1037 #if BUILDFLAG(ENABLE_EXTENSIONS)
1038 network_delegate->set_extension_info_map( 1038 network_delegate->set_extension_info_map(
1039 profile_params_->extension_info_map.get()); 1039 profile_params_->extension_info_map.get());
1040 if (!command_line.HasSwitch(switches::kDisableExtensionsHttpThrottling)) { 1040 if (!command_line.HasSwitch(switches::kDisableExtensionsHttpThrottling)) {
1041 extension_throttle_manager_.reset( 1041 extension_throttle_manager_.reset(
1042 new extensions::ExtensionThrottleManager()); 1042 new extensions::ExtensionThrottleManager());
1043 } 1043 }
1044 #endif 1044 #endif
1045 1045
1046 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get()); 1046 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get());
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 void ProfileIOData::SetCookieSettingsForTesting( 1355 void ProfileIOData::SetCookieSettingsForTesting(
1356 content_settings::CookieSettings* cookie_settings) { 1356 content_settings::CookieSettings* cookie_settings) {
1357 DCHECK(!cookie_settings_.get()); 1357 DCHECK(!cookie_settings_.get());
1358 cookie_settings_ = cookie_settings; 1358 cookie_settings_ = cookie_settings;
1359 } 1359 }
1360 1360
1361 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1361 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1362 const GURL& url) const { 1362 const GURL& url) const {
1363 return url_blacklist_manager_->GetURLBlacklistState(url); 1363 return url_blacklist_manager_->GetURLBlacklistState(url);
1364 } 1364 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698