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

Side by Side Diff: components/update_client/update_query_params_delegate.cc

Issue 1281913002: Componentize ComponentUpdaterConfigurator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/update_client/update_query_params_delegate.h" 5 #include "components/update_client/update_query_params_delegate.h"
6 6
7 namespace {
8 const char kUnknown[] = "unknown";
9 const char kStable[] = "stable";
10 const char kBeta[] = "beta";
11 const char kDev[] = "dev";
12 const char kCanary[] = "canary";
13 }
14
7 namespace update_client { 15 namespace update_client {
8 16
9 UpdateQueryParamsDelegate::UpdateQueryParamsDelegate() { 17 UpdateQueryParamsDelegate::UpdateQueryParamsDelegate() {
10 } 18 }
11 19
12 UpdateQueryParamsDelegate::~UpdateQueryParamsDelegate() { 20 UpdateQueryParamsDelegate::~UpdateQueryParamsDelegate() {
13 } 21 }
14 22
23 // static
24 const char* UpdateQueryParamsDelegate::GetChannelStringHelper(
25 version_info::Channel channel) {
26 switch (channel) {
27 case version_info::Channel::STABLE:
28 return kStable;
29 break;
30 case version_info::Channel::BETA:
31 return kBeta;
32 break;
33 case version_info::Channel::DEV:
34 return kDev;
35 break;
36 case version_info::Channel::CANARY:
37 return kCanary;
38 break;
39 case version_info::Channel::UNKNOWN:
40 return kUnknown;
41 break;
42 }
43 return kUnknown;
44 }
45
15 } // namespace update_client 46 } // namespace update_client
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698