OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/extensions/updater/chrome_update_client_config.h" |
| 6 |
| 7 #include "base/version.h" |
| 8 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" |
| 10 #include "chrome/common/channel_info.h" |
| 11 #include "components/component_updater/component_updater_url_constants.h" |
| 12 #include "components/version_info/version_info.h" |
| 13 #include "url/gurl.h" |
| 14 |
| 15 namespace extensions { |
| 16 |
| 17 ChromeUpdateClientConfig::ChromeUpdateClientConfig( |
| 18 content::BrowserContext* context) |
| 19 : UpdateClientConfig(context) {} |
| 20 |
| 21 std::vector<GURL> ChromeUpdateClientConfig::UpdateUrl() const { |
| 22 std::vector<GURL> result; |
| 23 result.push_back(GURL(component_updater::kUpdaterDefaultUrl)); |
| 24 return result; |
| 25 } |
| 26 |
| 27 std::vector<GURL> ChromeUpdateClientConfig::PingUrl() const { |
| 28 return UpdateUrl(); |
| 29 } |
| 30 |
| 31 base::Version ChromeUpdateClientConfig::GetBrowserVersion() const { |
| 32 return base::Version(version_info::GetVersionNumber()); |
| 33 } |
| 34 |
| 35 std::string ChromeUpdateClientConfig::GetChannel() const { |
| 36 return chrome::GetChannelString(); |
| 37 } |
| 38 |
| 39 std::string ChromeUpdateClientConfig::GetLang() const { |
| 40 return ChromeUpdateQueryParamsDelegate::GetLang(); |
| 41 } |
| 42 |
| 43 ChromeUpdateClientConfig::~ChromeUpdateClientConfig() {} |
| 44 |
| 45 } // namespace extensions |
OLD | NEW |