| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 6602f26139ede12e9cf36a51969508e7a0c9b0d3..3681afe35722196371a6f9cbff70ac805131d23f 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -84,6 +84,7 @@
|
| #include "content/public/browser/notification_service.h"
|
| #include "content/public/browser/user_metrics.h"
|
| #include "grit/chromium_strings.h"
|
| +#include "grit/generated_resources.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
|
|
| #if defined(OS_WIN)
|
| @@ -443,9 +444,28 @@ void ProfileImpl::InitRegisteredProtocolHandlers() {
|
| return;
|
| protocol_handler_registry_ = new ProtocolHandlerRegistry(this,
|
| new ProtocolHandlerRegistry::Delegate());
|
| +
|
| + // Install predefined protocol handlers.
|
| + InstallFixedProtocolHandlers();
|
| +
|
| protocol_handler_registry_->Load();
|
| }
|
|
|
| +void ProfileImpl::InstallFixedProtocolHandlers() {
|
| +#if defined(OS_CHROMEOS)
|
| + protocol_handler_registry_->AddFixedHandler(
|
| + ProtocolHandler::CreateProtocolHandler(
|
| + "mailto",
|
| + GURL(l10n_util::GetStringUTF8(IDS_GOOGLE_MAILTO_HANDLER_URL)),
|
| + l10n_util::GetStringUTF16(IDS_GOOGLE_MAILTO_HANDLER_NAME)));
|
| + protocol_handler_registry_->AddFixedHandler(
|
| + ProtocolHandler::CreateProtocolHandler(
|
| + "webcal",
|
| + GURL(l10n_util::GetStringUTF8(IDS_GOOGLE_WEBCAL_HANDLER_URL)),
|
| + l10n_util::GetStringUTF16(IDS_GOOGLE_WEBCAL_HANDLER_NAME)));
|
| +#endif
|
| +}
|
| +
|
| FilePath ProfileImpl::last_selected_directory() {
|
| return GetPrefs()->GetFilePath(prefs::kSelectFileLastDirectory);
|
| }
|
|
|