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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 5758002: Make HelpApp component extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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/browser/browser_resources.grd ('k') | chrome/browser/resources/help_app/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 7913da19f7dfc92f7e79be86df78b6c48cf28fe9..b9d0a216f2ef7811230d8ff509d9e0ebea249dae 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -408,6 +408,15 @@ void ProfileImpl::RegisterComponentExtensions() {
extensions_service_->register_component_extension(
ExtensionsService::ComponentExtensionInfo(manifest, path));
}
+
+#if defined(OS_CHROMEOS)
+ std::string manifest =
+ ResourceBundle::GetSharedInstance().GetRawDataResource(
+ IDR_HELP_MANIFEST).as_string();
+ FilePath path("/usr/share/chromeos-assets/helpapp");
Aaron Boodman 2010/12/10 18:38:22 Can you generalize the std::pair<> above into a st
Dmitry Polukhin 2010/12/13 16:17:33 I did it a bit different but kept registration onl
+ extensions_service_->register_component_extension(
+ ExtensionsService::ComponentExtensionInfo(manifest, path));
+#endif
}
void ProfileImpl::InstallDefaultApps() {
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/help_app/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698