Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4272)

Unified Diff: chrome/common/extensions/features/feature_channel.h

Issue 661593005: Build a few more extensions files only when extensions are enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/features/feature_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/extensions/features/feature_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698