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

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

Issue 2462983003: Move data use measurement to DataUseNetworkDelegate (Closed)
Patch Set: Fixed linux unittest compile 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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 1022
1023 main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli); 1023 main_request_context_->set_enable_brotli(io_thread_globals->enable_brotli);
1024 1024
1025 std::unique_ptr<ChromeNetworkDelegate> network_delegate( 1025 std::unique_ptr<ChromeNetworkDelegate> network_delegate(
1026 new ChromeNetworkDelegate( 1026 new ChromeNetworkDelegate(
1027 #if defined(ENABLE_EXTENSIONS) 1027 #if defined(ENABLE_EXTENSIONS)
1028 io_thread_globals->extension_event_router_forwarder.get(), 1028 io_thread_globals->extension_event_router_forwarder.get(),
1029 #else 1029 #else
1030 NULL, 1030 NULL,
1031 #endif 1031 #endif
1032 &enable_referrers_, io_thread->GetMetricsDataUseForwarder())); 1032 &enable_referrers_));
1033 #if defined(ENABLE_EXTENSIONS) 1033 #if defined(ENABLE_EXTENSIONS)
1034 network_delegate->set_extension_info_map( 1034 network_delegate->set_extension_info_map(
1035 profile_params_->extension_info_map.get()); 1035 profile_params_->extension_info_map.get());
1036 if (!command_line.HasSwitch(switches::kDisableExtensionsHttpThrottling)) { 1036 if (!command_line.HasSwitch(switches::kDisableExtensionsHttpThrottling)) {
1037 extension_throttle_manager_.reset( 1037 extension_throttle_manager_.reset(
1038 new extensions::ExtensionThrottleManager()); 1038 new extensions::ExtensionThrottleManager());
1039 } 1039 }
1040 #endif 1040 #endif
1041 1041
1042 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get()); 1042 network_delegate->set_url_blacklist_manager(url_blacklist_manager_.get());
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 void ProfileIOData::SetCookieSettingsForTesting( 1351 void ProfileIOData::SetCookieSettingsForTesting(
1352 content_settings::CookieSettings* cookie_settings) { 1352 content_settings::CookieSettings* cookie_settings) {
1353 DCHECK(!cookie_settings_.get()); 1353 DCHECK(!cookie_settings_.get());
1354 cookie_settings_ = cookie_settings; 1354 cookie_settings_ = cookie_settings;
1355 } 1355 }
1356 1356
1357 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState( 1357 policy::URLBlacklist::URLBlacklistState ProfileIOData::GetURLBlacklistState(
1358 const GURL& url) const { 1358 const GURL& url) const {
1359 return url_blacklist_manager_->GetURLBlacklistState(url); 1359 return url_blacklist_manager_->GetURLBlacklistState(url);
1360 } 1360 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698