| Index: chrome/common/extensions/chrome_extensions_client.cc
|
| diff --git a/chrome/common/extensions/chrome_extensions_client.cc b/chrome/common/extensions/chrome_extensions_client.cc
|
| index a45d4f80e438e41a1e7610779eed2aa1d00e8974..8bda78350df31f1238c48b1eef33d2f86fea62bf 100644
|
| --- a/chrome/common/extensions/chrome_extensions_client.cc
|
| +++ b/chrome/common/extensions/chrome_extensions_client.cc
|
| @@ -6,10 +6,12 @@
|
|
|
| #include "apps/common/api/generated_schemas.h"
|
| #include "base/command_line.h"
|
| +#include "chrome/common/chrome_version_info.h"
|
| #include "chrome/common/extensions/api/generated_schemas.h"
|
| #include "chrome/common/extensions/chrome_manifest_handlers.h"
|
| #include "chrome/common/extensions/extension_constants.h"
|
| #include "chrome/common/extensions/features/chrome_channel_feature_filter.h"
|
| +#include "chrome/common/extensions/features/feature_channel.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "content/public/common/url_constants.h"
|
| #include "extensions/common/api/generated_schemas.h"
|
| @@ -180,6 +182,11 @@ void ChromeExtensionsClient::AddExtraFeatureFilters(
|
| scoped_ptr<SimpleFeatureFilter>(new ChromeChannelFeatureFilter(feature)));
|
| }
|
|
|
| +bool ChromeExtensionsClient::ShouldSuppressFatalErrors() const {
|
| + // <= dev means dev, canary, and trunk.
|
| + return GetCurrentChannel() <= chrome::VersionInfo::CHANNEL_DEV;
|
| +}
|
| +
|
| // static
|
| ChromeExtensionsClient* ChromeExtensionsClient::GetInstance() {
|
| return g_client.Pointer();
|
|
|