Chromium Code Reviews| Index: chrome/common/extensions/features/chrome_channel_feature_filter.cc |
| diff --git a/chrome/common/extensions/features/chrome_channel_feature_filter.cc b/chrome/common/extensions/features/chrome_channel_feature_filter.cc |
| index d745e07730df1411022c7d1ad81c812d95446436..a362cc2739f92f4f26c96c0290f1220b98dc6d6d 100644 |
| --- a/chrome/common/extensions/features/chrome_channel_feature_filter.cc |
| +++ b/chrome/common/extensions/features/chrome_channel_feature_filter.cc |
| @@ -12,6 +12,8 @@ |
| #include "chrome/common/extensions/features/feature_channel.h" |
| #include "components/version_info/version_info.h" |
| #include "extensions/common/features/simple_feature.h" |
| +#include "grit/chromium_strings.h" |
| +#include "ui/base/l10n/l10n_util.h" |
| namespace extensions { |
| @@ -90,10 +92,11 @@ Feature::Availability ChromeChannelFeatureFilter::IsAvailableToManifest( |
| return Feature::Availability( |
| Feature::UNSUPPORTED_CHANNEL, |
| base::StringPrintf( |
| - "'%s' requires Google Chrome %s channel or newer, but this is the " |
| + "'%s' requires %s %s channel or newer, but this is the " |
| "%s channel.", |
| - feature()->name().c_str(), GetChannelName(channel_).c_str(), |
| - GetChannelName(GetCurrentChannel()).c_str())); |
| + feature()->name().c_str(), |
| + l10n_util::GetStringUTF8(IDS_PRODUCT_NAME).c_str(), |
| + GetChannelName(channel_).c_str())); |
|
Reilly Grant (use Gerrit)
2015/11/23 19:23:32
This format string requires the current channel na
wmaslowski
2015/11/24 14:45:14
whoops - seems like I commited it before correctin
|
| } |
| return Feature::Availability(Feature::IS_AVAILABLE, std::string()); |
| } |