Index: chrome/common/extensions/features/feature_channel.h |
diff --git a/chrome/common/extensions/features/feature_channel.h b/chrome/common/extensions/features/feature_channel.h |
index e915aac07fed32843062344c497fbcf8ece56f75..dd69f33d3442cc5e61e9893724bdcdf04d103273 100644 |
--- a/chrome/common/extensions/features/feature_channel.h |
+++ b/chrome/common/extensions/features/feature_channel.h |
@@ -23,18 +23,13 @@ chrome::VersionInfo::Channel GetDefaultChannel(); |
// Scoped channel setter. Use for tests. |
class ScopedCurrentChannel { |
public: |
- explicit ScopedCurrentChannel(chrome::VersionInfo::Channel channel) |
- : original_channel_(chrome::VersionInfo::CHANNEL_UNKNOWN) { |
- original_channel_ = GetCurrentChannel(); |
- SetCurrentChannel(channel); |
- } |
- |
- ~ScopedCurrentChannel() { |
- SetCurrentChannel(original_channel_); |
- } |
+ explicit ScopedCurrentChannel(chrome::VersionInfo::Channel channel); |
+ ~ScopedCurrentChannel(); |
private: |
chrome::VersionInfo::Channel original_channel_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ScopedCurrentChannel); |
}; |
} // namespace extensions |