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

Unified Diff: chrome/browser/policy/schema_registry_service_factory.cc

Issue 349643002: Decoupled the SchemaRegistryService from SchemaRegistry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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
« no previous file with comments | « chrome/browser/policy/schema_registry_service.cc ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/schema_registry_service_factory.cc
diff --git a/chrome/browser/policy/schema_registry_service_factory.cc b/chrome/browser/policy/schema_registry_service_factory.cc
index 71758ffc9076cbb1247912cd29ca8f1166599b20..eaa526848015ce7c60056e06a8583ffa2acc077e 100644
--- a/chrome/browser/policy/schema_registry_service_factory.cc
+++ b/chrome/browser/policy/schema_registry_service_factory.cc
@@ -60,10 +60,11 @@ SchemaRegistryServiceFactory::CreateForContextInternal(
CombinedSchemaRegistry* global_registry) {
DCHECK(!context->IsOffTheRecord());
DCHECK(registries_.find(context) == registries_.end());
- SchemaRegistryService* registry =
- new SchemaRegistryService(chrome_schema, global_registry);
- registries_[context] = registry;
- return make_scoped_ptr(registry);
+ scoped_ptr<SchemaRegistry> registry(new SchemaRegistry);
+ scoped_ptr<SchemaRegistryService> service(new SchemaRegistryService(
+ registry.Pass(), chrome_schema, global_registry));
+ registries_[context] = service.get();
+ return service.Pass();
}
void SchemaRegistryServiceFactory::BrowserContextShutdown(
« no previous file with comments | « chrome/browser/policy/schema_registry_service.cc ('k') | chrome/browser/ui/webui/policy_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698