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

Side by Side Diff: chrome/common/extensions/features/feature_channel.cc

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/extensions/features/feature_channel.h" 5 #include "chrome/common/extensions/features/feature_channel.h"
6 6
7 using chrome::VersionInfo; 7 #include "components/version_info/version_info.h"
8 8
9 namespace { 9 namespace {
10 10
11 const version_info::Channel kDefaultChannel = version_info::Channel::STABLE; 11 const version_info::Channel kDefaultChannel = version_info::Channel::STABLE;
12 version_info::Channel g_current_channel = kDefaultChannel; 12 version_info::Channel g_current_channel = kDefaultChannel;
13 13
14 } // namespace 14 } // namespace
15 15
16 namespace extensions { 16 namespace extensions {
17 17
(...skipping 13 matching lines...) Expand all
31 : original_channel_(version_info::Channel::UNKNOWN) { 31 : original_channel_(version_info::Channel::UNKNOWN) {
32 original_channel_ = GetCurrentChannel(); 32 original_channel_ = GetCurrentChannel();
33 SetCurrentChannel(channel); 33 SetCurrentChannel(channel);
34 } 34 }
35 35
36 ScopedCurrentChannel::~ScopedCurrentChannel() { 36 ScopedCurrentChannel::~ScopedCurrentChannel() {
37 SetCurrentChannel(original_channel_); 37 SetCurrentChannel(original_channel_);
38 } 38 }
39 39
40 } // namespace extensions 40 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/features/feature_channel.h ('k') | chrome/common/extensions/manifest_handlers/automation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698