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

Unified Diff: content/browser/browser_context.cc

Issue 2510033002: [Device Service] Move PowerMonitor into the Device Service (Closed)
Patch Set: Singleton service Created 3 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index 1e7f2c38205d9b210a1500f0868df6a94a4a2301..9acf8eef2580b419f32676640d81f3a8714d378c 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -458,8 +458,9 @@ void BrowserContext::Initialize(
connection->Start();
// New embedded service factories should be added to |connection| here.
- // TODO(blundell): Does this belong as a global service rather than per
- // BrowserContext?
+ // As we've configured service manager to treat device service as singleton,
+ // only one device service instance will be created to serve multiple user
+ // ids.
ServiceInfo info;
info.factory =
base::Bind(&device::CreateDeviceService,
blundell 2017/01/03 15:20:50 Does the Device Service not still need to be regis
Ken Rockot(use gerrit already) 2017/01/03 20:25:15 The answer to your question is yes, but there's an
leonhsl(Using Gerrit) 2017/01/04 07:34:11 Done and thanks a lot for the kindly explanations!

Powered by Google App Engine
This is Rietveld 408576698