Remove deprecated std::ptr_fun and std::bind2nd

std::ptr_fun and std::bind2nd are deprecated in C++11, and removed in
C++17. This CL removes their usage, so that the code base is ready for
C++17.

Bug: 752720
Change-Id: I5a33143768a32864367f6889c4d1dbd0a26ee9e2
Reviewed-on: https://chromium-review.googlesource.com/1025541
Reviewed-by: Nico Weber <thakis@chromium.org>
Reviewed-by: Sorin Jianu <sorin@chromium.org>
Reviewed-by: Maksim Ivanov <emaxx@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#553595}

CrOS-Libchrome-Original-Commit: 22ae932e849e899e818ac3a28f060f7d19b76a42
diff --git a/components/policy/core/common/preg_parser.cc b/components/policy/core/common/preg_parser.cc
index a52d0e0..a4fada3 100644
--- a/components/policy/core/common/preg_parser.cc
+++ b/components/policy/core/common/preg_parser.cc
@@ -8,7 +8,6 @@
 #include <stdint.h>
 
 #include <algorithm>
-#include <functional>
 #include <iterator>
 #include <limits>
 #include <memory>
@@ -146,7 +145,7 @@
       reinterpret_cast<const base::char16*>(data.data());
   base::string16 utf16_str;
   std::transform(chars, chars + len - 1, std::back_inserter(utf16_str),
-                 std::ptr_fun(base::ByteSwapToLE16));
+                 base::ByteSwapToLE16);
   // Note: UTF16ToUTF8() only checks whether all chars are valid code points,
   // but not whether they're valid characters. IsStringUTF8(), however, does.
   *value = base::UTF16ToUTF8(utf16_str);