Index: chrome/common/extensions/features/feature_unittest.cc |
diff --git a/chrome/common/extensions/features/feature_unittest.cc b/chrome/common/extensions/features/feature_unittest.cc |
index 77fe6f4c4cdb433121fefd1c6d5f54fc66c279d4..417d5ed8820752cd6b76a05c181883b89fbcf2b1 100644 |
--- a/chrome/common/extensions/features/feature_unittest.cc |
+++ b/chrome/common/extensions/features/feature_unittest.cc |
@@ -454,8 +454,7 @@ TEST(ExtensionFeatureTest, Equals) { |
Feature::Availability IsAvailableInChannel( |
const std::string& channel, VersionInfo::Channel channel_for_testing) { |
- Feature::SetChannelCheckingEnabled(true); |
- Feature::SetChannelForTesting(channel_for_testing); |
+ Feature::ScopedCurrentChannel current_channel(channel_for_testing); |
Feature feature; |
if (!channel.empty()) { |
@@ -464,15 +463,11 @@ Feature::Availability IsAvailableInChannel( |
feature.Parse(&feature_value); |
} |
- Feature::Availability availability = feature.IsAvailableToManifest( |
+ return feature.IsAvailableToManifest( |
"random-extension", |
Extension::TYPE_UNKNOWN, |
Feature::UNSPECIFIED_LOCATION, |
-1); |
- |
- Feature::ResetChannelForTesting(); |
- Feature::ResetChannelCheckingEnabled(); |
- return availability; |
} |
TEST(ExtensionFeatureTest, SupportedChannel) { |