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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 334783002: Componentize component_updater: Move some paths/constants to component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add component updater to common dependency list Created 6 years, 5 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
« no previous file with comments | « chrome/app/DEPS ('k') | chrome/browser/component_updater/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc
index 6dbb03a3d96e93547c4e2078230c2b6798951b6c..ee5fce387eac5c35470a31a5dcc2e98c03219eb4 100644
--- a/chrome/app/chrome_main_delegate.cc
+++ b/chrome/app/chrome_main_delegate.cc
@@ -34,6 +34,7 @@
#include "chrome/plugin/chrome_content_plugin_client.h"
#include "chrome/renderer/chrome_content_renderer_client.h"
#include "chrome/utility/chrome_content_utility_client.h"
+#include "components/component_updater/component_updater_paths.h"
#include "components/nacl/common/nacl_switches.h"
#include "components/startup_metric_utils/startup_metric_utils.h"
#include "content/public/common/content_client.h"
@@ -424,6 +425,9 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exit_code) {
#if !defined(DISABLE_NACL) && defined(OS_LINUX)
nacl::RegisterPathProvider();
#endif
+ base::FilePath user_data;
+ if (PathService::Get(chrome::DIR_USER_DATA, &user_data))
+ component_updater::RegisterPathProvider(user_data);
// No support for ANDROID yet as DiagnosticsController needs wchar support.
// TODO(gspencer): That's not true anymore, or at least there are no w-string
« no previous file with comments | « chrome/app/DEPS ('k') | chrome/browser/component_updater/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698