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

Unified Diff: chrome/browser/browser_process_impl.h

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.h
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h
index c66414e3a700c6e1060e0bb74adb76fd31ae0ffe..c481b02792d32fc8bddb26c38526a0fd7027d469 100644
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -24,6 +24,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/lifetime/keep_alive_state_observer.h"
#include "chrome/common/features.h"
+#include "components/component_updater/default_component_installer.h"
#include "components/prefs/pref_change_registrar.h"
#include "extensions/features/features.h"
#include "media/media_features.h"
@@ -161,6 +162,12 @@ class BrowserProcessImpl : public BrowserProcess,
physical_web::PhysicalWebDataSource* GetPhysicalWebDataSource() override;
static void RegisterPrefs(PrefRegistrySimple* registry);
+#if defined(OS_CHROMEOS)
+ component_updater::DefaultComponentInstaller* cros_component_installer(
+ const std::string& name,
+ std::unique_ptr<component_updater::ComponentInstallerTraits>
+ installer_traits) override;
+#endif
private:
// KeepAliveStateObserver implementation
@@ -354,6 +361,12 @@ class BrowserProcessImpl : public BrowserProcess,
std::unique_ptr<physical_web::PhysicalWebDataSource>
physical_web_data_source_;
+#if defined(OS_CHROMEOS)
+ std::map<std::string,
+ scoped_refptr<component_updater::DefaultComponentInstaller>>
+ cros_component_installers_;
+#endif
+
DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
};

Powered by Google App Engine
This is Rietveld 408576698