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

Side by Side Diff: chrome/browser/extensions/updater/chrome_update_client_config.cc

Issue 1823273002: Send the value of google_brand::GetBrand in component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor unit test improvement. Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/version.h" 6 #include "base/version.h"
7 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr ocess.h" 7 #include "chrome/browser/component_updater/component_patcher_operation_out_of_pr ocess.h"
8 #include "chrome/browser/extensions/updater/chrome_update_client_config.h" 8 #include "chrome/browser/extensions/updater/chrome_update_client_config.h"
9 #include "chrome/browser/google/google_brand.h"
9 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" 10 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h"
10 #include "chrome/common/channel_info.h" 11 #include "chrome/common/channel_info.h"
11 #include "content/public/browser/browser_context.h" 12 #include "content/public/browser/browser_context.h"
12 13
13 namespace extensions { 14 namespace extensions {
14 15
15 ChromeUpdateClientConfig::ChromeUpdateClientConfig( 16 ChromeUpdateClientConfig::ChromeUpdateClientConfig(
16 content::BrowserContext* context) 17 content::BrowserContext* context)
17 : impl_(base::CommandLine::ForCurrentProcess(), 18 : impl_(base::CommandLine::ForCurrentProcess(),
18 context->GetRequestContext()) { 19 context->GetRequestContext()) {
(...skipping 28 matching lines...) Expand all
47 } 48 }
48 49
49 base::Version ChromeUpdateClientConfig::GetBrowserVersion() const { 50 base::Version ChromeUpdateClientConfig::GetBrowserVersion() const {
50 return impl_.GetBrowserVersion(); 51 return impl_.GetBrowserVersion();
51 } 52 }
52 53
53 std::string ChromeUpdateClientConfig::GetChannel() const { 54 std::string ChromeUpdateClientConfig::GetChannel() const {
54 return chrome::GetChannelString(); 55 return chrome::GetChannelString();
55 } 56 }
56 57
58 std::string ChromeUpdateClientConfig::GetBrand() const {
59 std::string brand;
60 google_brand::GetBrand(&brand);
61 return brand;
62 }
63
57 std::string ChromeUpdateClientConfig::GetLang() const { 64 std::string ChromeUpdateClientConfig::GetLang() const {
58 return ChromeUpdateQueryParamsDelegate::GetLang(); 65 return ChromeUpdateQueryParamsDelegate::GetLang();
59 } 66 }
60 67
61 std::string ChromeUpdateClientConfig::GetOSLongName() const { 68 std::string ChromeUpdateClientConfig::GetOSLongName() const {
62 return impl_.GetOSLongName(); 69 return impl_.GetOSLongName();
63 } 70 }
64 71
65 std::string ChromeUpdateClientConfig::ExtraRequestParams() const { 72 std::string ChromeUpdateClientConfig::ExtraRequestParams() const {
66 return impl_.ExtraRequestParams(); 73 return impl_.ExtraRequestParams();
(...skipping 20 matching lines...) Expand all
87 return impl_.UseBackgroundDownloader(); 94 return impl_.UseBackgroundDownloader();
88 } 95 }
89 96
90 bool ChromeUpdateClientConfig::UseCupSigning() const { 97 bool ChromeUpdateClientConfig::UseCupSigning() const {
91 return impl_.UseCupSigning(); 98 return impl_.UseCupSigning();
92 } 99 }
93 100
94 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} 101 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {}
95 102
96 } // namespace extensions 103 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/updater/chrome_update_client_config.h ('k') | components/update_client/configurator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698