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

Unified Diff: chrome/browser/browser_process_platform_part_chromeos.h

Issue 2898063002: Hold cros_component_installers in browser_process. (Closed)
Patch Set: trim code 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_platform_part_chromeos.h
diff --git a/chrome/browser/browser_process_platform_part_chromeos.h b/chrome/browser/browser_process_platform_part_chromeos.h
index 675e57c95c91677755acb36c1c5612fd9efd2f63..cd378f9778cf9643ab978dd1dd9fd3b322a14537 100644
--- a/chrome/browser/browser_process_platform_part_chromeos.h
+++ b/chrome/browser/browser_process_platform_part_chromeos.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/threading/non_thread_safe.h"
#include "chrome/browser/browser_process_platform_part_base.h"
+#include "chrome/browser/component_updater/cros_component_installer.h"
namespace chromeos {
class ChromeSessionManager;
@@ -29,6 +30,11 @@ class TimeZoneResolverManager;
}
}
+namespace component_updater {
+class ComponentInstallerTraits;
+class CrOSComponentInstaller;
+}
+
namespace policy {
class BrowserPolicyConnector;
class BrowserPolicyConnectorChromeOS;
@@ -98,6 +104,12 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
chromeos::system::SystemClock* GetSystemClock();
void DestroySystemClock();
+ scoped_refptr<component_updater::CrOSComponentInstaller>
+ GetCrosComponentInstaller(
+ const std::string& name,
+ std::unique_ptr<component_updater::ComponentInstallerTraits>
+ installer_traits);
+
private:
void CreateProfileHelper();
@@ -124,6 +136,10 @@ class BrowserProcessPlatformPart : public BrowserProcessPlatformPartBase,
std::unique_ptr<ScopedKeepAlive> keep_alive_;
+ std::map<std::string,
sky 2017/05/24 16:47:20 include <map> and <string>
xiaochu 2017/05/24 19:56:54 Done.
+ scoped_refptr<component_updater::CrOSComponentInstaller>>
+ cros_component_installers_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserProcessPlatformPart);
};

Powered by Google App Engine
This is Rietveld 408576698