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

Side by Side Diff: chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.cc

Issue 2369673004: Wire NQE Prefs to Profile (Closed)
Patch Set: Addressed bengr comments Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/nqe/ui_network_quality_estimator_service_factory.h" 5 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h"
6 6
7 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h" 7 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "components/keyed_service/content/browser_context_dependency_manager.h" 9 #include "components/keyed_service/content/browser_context_dependency_manager.h"
10 #include "content/public/browser/browser_context.h" 10 #include "content/public/browser/browser_context.h"
(...skipping 16 matching lines...) Expand all
27 UINetworkQualityEstimatorServiceFactory() 27 UINetworkQualityEstimatorServiceFactory()
28 : BrowserContextKeyedServiceFactory( 28 : BrowserContextKeyedServiceFactory(
29 "UINetworkQualityEstimatorService", 29 "UINetworkQualityEstimatorService",
30 BrowserContextDependencyManager::GetInstance()) {} 30 BrowserContextDependencyManager::GetInstance()) {}
31 31
32 UINetworkQualityEstimatorServiceFactory:: 32 UINetworkQualityEstimatorServiceFactory::
33 ~UINetworkQualityEstimatorServiceFactory() {} 33 ~UINetworkQualityEstimatorServiceFactory() {}
34 34
35 KeyedService* UINetworkQualityEstimatorServiceFactory::BuildServiceInstanceFor( 35 KeyedService* UINetworkQualityEstimatorServiceFactory::BuildServiceInstanceFor(
36 content::BrowserContext* context) const { 36 content::BrowserContext* context) const {
37 return new UINetworkQualityEstimatorService(); 37 return new UINetworkQualityEstimatorService(
38 Profile::FromBrowserContext(context));
38 } 39 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698