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

Unified Diff: chrome/browser/apps/browser_context_keyed_service_factories.cc

Issue 2789253003: Add chrome/browser/apps/BUILD.gn and move Chrome-specific code there (Closed)
Patch Set: rebase Created 3 years, 8 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: chrome/browser/apps/browser_context_keyed_service_factories.cc
diff --git a/chrome/browser/apps/browser_context_keyed_service_factories.cc b/chrome/browser/apps/browser_context_keyed_service_factories.cc
new file mode 100644
index 0000000000000000000000000000000000000000..73955307fb649661fdba277e7b7bf0cffa2628f7
--- /dev/null
+++ b/chrome/browser/apps/browser_context_keyed_service_factories.cc
@@ -0,0 +1,24 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/apps/browser_context_keyed_service_factories.h"
+
+#include "apps/browser_context_keyed_service_factories.h"
+#include "chrome/browser/apps/app_load_service_factory.h"
+#include "chrome/browser/apps/shortcut_manager_factory.h"
+#include "content/public/browser/browser_context.h"
+
+namespace chrome_apps {
+
+void EnsureBrowserContextKeyedServiceFactoriesBuilt() {
+ apps::EnsureBrowserContextKeyedServiceFactoriesBuilt();
+ AppShortcutManagerFactory::GetInstance();
+ apps::AppLoadServiceFactory::GetInstance();
+}
+
+void NotifyApplicationTerminating(content::BrowserContext* browser_context) {
+ apps::NotifyApplicationTerminating(browser_context);
+}
+
+} // namespace chrome_apps

Powered by Google App Engine
This is Rietveld 408576698