summaryrefslogtreecommitdiffstats
path: root/components/component_updater
diff options
context:
space:
mode:
authorasargent <asargent@chromium.org>2015-10-15 14:51:48 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-15 21:52:40 +0000
commit631a99a61cbe3e7e03e372b3d37c6a37fa700392 (patch)
tree95c4fc66df8e20ba8744159f0ae63913e1750a4a /components/component_updater
parenta33cc7d19a2c878e2a7d9b4a540d06f3e0c3fc16 (diff)
downloadchromium_src-631a99a61cbe3e7e03e372b3d37c6a37fa700392.zip
chromium_src-631a99a61cbe3e7e03e372b3d37c6a37fa700392.tar.gz
chromium_src-631a99a61cbe3e7e03e372b3d37c6a37fa700392.tar.bz2
Add extensions code to use common updater in components/update_client/
This is another piece of work towards implementing differential extensions update and share autoupdate code with the chrome components system. It adds code to the extensions/browser directory that makes use of the common autoupdate code via the update_client::UpdateClient class to send update checks to the server, download a full .crx or differential update, and hand back an unpacked directory with the contents of the new extension version. This CL does not yet add any code in chrome/ that actually uses these new capabilities; that will be in a forthcoming CL. BUG=490418 Review URL: https://codereview.chromium.org/1362043005 Cr-Commit-Position: refs/heads/master@{#354370}
Diffstat (limited to 'components/component_updater')
-rw-r--r--components/component_updater/configurator_impl.cc4
-rw-r--r--components/component_updater/configurator_impl.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/components/component_updater/configurator_impl.cc b/components/component_updater/configurator_impl.cc
index cc6d7f0..fb8f1db 100644
--- a/components/component_updater/configurator_impl.cc
+++ b/components/component_updater/configurator_impl.cc
@@ -192,4 +192,8 @@ bool ConfiguratorImpl::UseBackgroundDownloader() const {
return background_downloads_enabled_;
}
+void ConfiguratorImpl::set_enable_alt_source_url(bool enable_alt_source_url) {
+ fallback_to_alt_source_url_enabled_ = enable_alt_source_url;
+}
+
} // namespace component_updater
diff --git a/components/component_updater/configurator_impl.h b/components/component_updater/configurator_impl.h
index df58473..b2e75a9 100644
--- a/components/component_updater/configurator_impl.h
+++ b/components/component_updater/configurator_impl.h
@@ -77,6 +77,11 @@ class ConfiguratorImpl {
// non on-demand components.
bool UseBackgroundDownloader() const;
+ // Setting this to false means that we'll only use secure transport (eg https)
+ // for update/ping urls. This is already false by default everywhere but older
+ // versions of Windows XP.
+ void set_enable_alt_source_url(bool enable_alt_source_url);
+
private:
net::URLRequestContextGetter* url_request_getter_;
std::string extra_info_;