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

Unified Diff: extensions/browser/updater/update_service_factory.cc

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merged latest origin/master Created 5 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/updater/update_service_factory.cc
diff --git a/extensions/browser/updater/update_service_factory.cc b/extensions/browser/updater/update_service_factory.cc
index a87c88bdfb1efc17f1bf7a0da6e92c6e8f1ca2ac..e441dc30fcf4bf57aa9c989ce26c4abcc4fd8018 100644
--- a/extensions/browser/updater/update_service_factory.cc
+++ b/extensions/browser/updater/update_service_factory.cc
@@ -5,7 +5,9 @@
#include "extensions/browser/updater/update_service_factory.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
+#include "components/update_client/update_client.h"
#include "extensions/browser/extension_registry_factory.h"
+#include "extensions/browser/extensions_browser_client.h"
#include "extensions/browser/process_manager_factory.h"
#include "extensions/browser/updater/update_service.h"
@@ -27,8 +29,6 @@ UpdateServiceFactory::UpdateServiceFactory()
: BrowserContextKeyedServiceFactory(
"UpdateService",
BrowserContextDependencyManager::GetInstance()) {
- DependsOn(extensions::ExtensionRegistryFactory::GetInstance());
- DependsOn(extensions::ProcessManagerFactory::GetInstance());
}
UpdateServiceFactory::~UpdateServiceFactory() {
@@ -36,7 +36,8 @@ UpdateServiceFactory::~UpdateServiceFactory() {
KeyedService* UpdateServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
- return new UpdateService(context);
+ return new UpdateService(
+ context, ExtensionsBrowserClient::Get()->CreateUpdateClient(context));
}
} // namespace extensions
« no previous file with comments | « extensions/browser/updater/update_service_browsertest.cc ('k') | extensions/browser/updater/update_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698