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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 334783002: Componentize component_updater: Move some paths/constants to component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge origin/master 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
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 4f9f0945f9ad0d579897bae7b747c03bac14cda3..5e4125085964e0d8e948a81aec7b2f1e23e38a48 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -384,9 +384,18 @@ void RegisterComponentsForUpdate(const CommandLine& command_line) {
// a task to the UI thread to do registration once you done the necessary
// file IO to know you existing component version.
#if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
- RegisterRecoveryComponent(cus, g_browser_process->local_state());
+ base::FilePath recovery_base_dir;
+ if (PathService::Get(chrome::DIR_RECOVERY_BASE, &recovery_base_dir)) {
+ RegisterRecoveryComponent(
+ cus, g_browser_process->local_state(), recovery_base_dir);
waffles 2014/06/18 22:30:37 Can we avoid passing these directories as argument
tommycli 2014/06/19 00:28:40 DIR_RECOVERY_BASE is always DIR_USER_DATA/recovery
+ }
Sorin Jianu 2014/06/19 00:48:21 I second the comment above. It seems we need to ha
tommycli 2014/06/23 21:55:28 Done.
+
RegisterPepperFlashComponent(cus);
- RegisterSwiftShaderComponent(cus);
+
+ base::FilePath user_data_dir;
+ if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) {
+ RegisterSwiftShaderComponent(cus, user_data_dir);
+ }
#endif
#if !defined(OS_ANDROID)
@@ -410,7 +419,11 @@ void RegisterComponentsForUpdate(const CommandLine& command_line) {
#endif
#if defined(CLD2_DYNAMIC_MODE) && defined(CLD2_IS_COMPONENT)
- RegisterCldComponent(cus);
+ base::FilePath cld2_base_dir;
+ if (PathService::Get(chrome::DIR_COMPONENT_CLD2, &cld2_base_dir)) {
+ RegisterCldComponent(
+ cus, cld2_base_dir, base::FilePath(chrome::kCLDDataFilename));
+ }
#endif
cus->Start();

Powered by Google App Engine
This is Rietveld 408576698