Use base::size rather than arraysize in net/.

BUG=837308

Change-Id: Icc80e825ba0cee5d5a828aedf0ab7636824d903f
Reviewed-on: https://chromium-review.googlesource.com/c/1390419
Reviewed-by: Eric Roman <[email protected]>
Commit-Queue: Avi Drissman <[email protected]>
Cr-Commit-Position: refs/heads/master@{#619176}
diff --git a/net/proxy_resolution/pac_file_fetcher_impl.cc b/net/proxy_resolution/pac_file_fetcher_impl.cc
index 41c67a80..d5ac977c 100644
--- a/net/proxy_resolution/pac_file_fetcher_impl.cc
+++ b/net/proxy_resolution/pac_file_fetcher_impl.cc
@@ -9,6 +9,7 @@
 #include "base/logging.h"
 #include "base/metrics/histogram_macros.h"
 #include "base/single_thread_task_runner.h"
+#include "base/stl_util.h"
 #include "base/strings/string_util.h"
 #include "base/threading/thread_task_runner_handle.h"
 #include "net/base/data_url.h"
@@ -52,7 +53,7 @@
   static const char* const kSupportedPacMimeTypes[] = {
       "application/x-ns-proxy-autoconfig", "application/x-javascript-config",
   };
-  for (size_t i = 0; i < arraysize(kSupportedPacMimeTypes); ++i) {
+  for (size_t i = 0; i < base::size(kSupportedPacMimeTypes); ++i) {
     if (base::LowerCaseEqualsASCII(mime_type, kSupportedPacMimeTypes[i]))
       return true;
   }