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

Unified Diff: content/browser/download/parallel_download_utils.cc

Issue 2823273004: Add new UMA stats for parallelizable download (Closed)
Patch Set: fix test Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/download/parallel_download_utils.h ('k') | content/public/test/test_file_error_injector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/parallel_download_utils.cc
diff --git a/content/browser/download/parallel_download_utils.cc b/content/browser/download/parallel_download_utils.cc
index 40f4397a10533a3ff559bdcd1b1e4d69cf732a4a..1e3d900bcd4b87f8e35f722c1c36a75054328af4 100644
--- a/content/browser/download/parallel_download_utils.cc
+++ b/content/browser/download/parallel_download_utils.cc
@@ -167,7 +167,7 @@ void DebugSlicesInfo(const DownloadItem::ReceivedSlices& slices) {
}
}
-CONTENT_EXPORT int64_t GetMaxContiguousDataBlockSizeFromBeginning(
+int64_t GetMaxContiguousDataBlockSizeFromBeginning(
const DownloadItem::ReceivedSlices& slices) {
std::vector<DownloadItem::ReceivedSlice>::const_iterator iter =
slices.begin();
@@ -180,4 +180,8 @@ CONTENT_EXPORT int64_t GetMaxContiguousDataBlockSizeFromBeginning(
return size;
}
+bool IsParallelDownloadEnabled() {
+ return base::FeatureList::IsEnabled(features::kParallelDownloading);
+}
+
} // namespace content
« no previous file with comments | « content/browser/download/parallel_download_utils.h ('k') | content/public/test/test_file_error_injector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698