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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 2898063002: Hold cros_component_installers in browser_process. (Closed)
Patch Set: update commit message Created 3 years, 7 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/browser_process_impl.cc
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index e84822d425fa75a89bed65f0069f5ef76210b66f..30ee8b1ab7221b7be6ba3e835389499607a7871f 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -979,6 +979,22 @@ BrowserProcessImpl::pnacl_component_installer() {
#endif
}
+#if defined(OS_CHROMEOS)
+component_updater::DefaultComponentInstaller*
+BrowserProcessImpl::cros_component_installer(
+ const std::string& name,
+ std::unique_ptr<component_updater::ComponentInstallerTraits>
+ installer_traits) {
+ auto it = cros_component_installers_.find(name);
+ if (it == cros_component_installers_.end()) {
+ cros_component_installers_[name] =
+ new component_updater::DefaultComponentInstaller(
+ std::move(installer_traits));
+ }
+ return cros_component_installers_[name].get();
+}
+#endif
+
component_updater::SupervisedUserWhitelistInstaller*
BrowserProcessImpl::supervised_user_whitelist_installer() {
if (!supervised_user_whitelist_installer_) {

Powered by Google App Engine
This is Rietveld 408576698