| Index: chrome/browser/extensions/extension_service.cc
|
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
|
| index b4580a8f776ea13cc1d388bbc3fa0224bf602843..8e5e11ba7b14c5f5d4d506a49ade736d070b2032 100644
|
| --- a/chrome/browser/extensions/extension_service.cc
|
| +++ b/chrome/browser/extensions/extension_service.cc
|
| @@ -86,6 +86,7 @@
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "chrome/common/chrome_version_info.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "chrome/common/extensions/extension_error_utils.h"
|
| #include "chrome/common/extensions/extension_file_util.h"
|
| @@ -2440,6 +2441,10 @@ void ExtensionService::Observe(int type,
|
| if (!profile_->IsSameProfile(host_profile->GetOriginalProfile()))
|
| break;
|
|
|
| + // Extensions need to know the channel for API restrictions.
|
| + process->Send(new ExtensionMsg_SetChannel(
|
| + chrome::VersionInfo::GetChannel()));
|
| +
|
| // Valid extension function names, used to setup bindings in renderer.
|
| std::vector<std::string> function_names;
|
| ExtensionFunctionDispatcher::GetAllFunctionNames(&function_names);
|
|
|