summaryrefslogtreecommitdiffstats
path: root/extensions/browser/updater
diff options
context:
space:
mode:
authoremaxx <emaxx@chromium.org>2015-05-18 13:14:25 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-18 20:15:21 +0000
commite161e59cf303d52ddb80c16ad71ef4417c32caae (patch)
tree96fac194c3e4882ecbfc11acf16e4874026ea3d0 /extensions/browser/updater
parent7c94aa5c0738d9b3bfa852100a264f010b16dfc8 (diff)
downloadchromium_src-e161e59cf303d52ddb80c16ad71ef4417c32caae.zip
chromium_src-e161e59cf303d52ddb80c16ad71ef4417c32caae.tar.gz
chromium_src-e161e59cf303d52ddb80c16ad71ef4417c32caae.tar.bz2
Don't download extensions updates when background networking is disabled
When the "--disable-background-networking" command-line switch is specified, extensions updates shouldn't be downloaded. BUG=489244 Review URL: https://codereview.chromium.org/1140873004 Cr-Commit-Position: refs/heads/master@{#330388}
Diffstat (limited to 'extensions/browser/updater')
-rw-r--r--extensions/browser/updater/extension_downloader.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/browser/updater/extension_downloader.cc b/extensions/browser/updater/extension_downloader.cc
index 1c3a9a9..08e4f8f 100644
--- a/extensions/browser/updater/extension_downloader.cc
+++ b/extensions/browser/updater/extension_downloader.cc
@@ -440,6 +440,7 @@ void ExtensionDownloader::StartUpdateCheck(
NotifyExtensionsDownloadFailed(id_set,
fetch_data->request_ids(),
ExtensionDownloaderDelegate::DISABLED);
+ return;
}
RequestQueue<ManifestFetchData>::iterator i;