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

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

Issue 1362043005: Add extensions code to use common updater in components/update_client/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: responded to review comments Created 5 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698