From a3c642c945b4a27e5d826eb9c9cbc07132cb2bba Mon Sep 17 00:00:00 2001 From: Brennan Saeta Date: Fri, 1 Jun 2018 18:00:43 -0700 Subject: [PATCH] Remove use of absl::make_unique absl is not yet ready for use by open source TensorFlow. :-( PiperOrigin-RevId: 198952953 --- tensorflow/contrib/cloud/kernels/gcs_config_ops.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tensorflow/contrib/cloud/kernels/gcs_config_ops.cc b/tensorflow/contrib/cloud/kernels/gcs_config_ops.cc index ef49982..648a219 100644 --- a/tensorflow/contrib/cloud/kernels/gcs_config_ops.cc +++ b/tensorflow/contrib/cloud/kernels/gcs_config_ops.cc @@ -21,6 +21,7 @@ limitations under the License. #include "tensorflow/core/platform/cloud/curl_http_request.h" #include "tensorflow/core/platform/cloud/gcs_file_system.h" #include "tensorflow/core/platform/cloud/oauth_client.h" +#include "tensorflow/core/util/ptr_util.h" namespace tensorflow { namespace { @@ -96,7 +97,8 @@ class GcsCredentialsOpKernel : public OpKernel { errors::InvalidArgument("JSON format incompatible; did not find fields " "`refresh_token` or `private_key`.")); - auto provider = absl::make_unique(json, ctx->env()); + auto provider = + tensorflow::MakeUnique(json, ctx->env()); // Test getting a token string dummy_token; @@ -121,7 +123,7 @@ class GcsCredentialsOpKernel : public OpKernel { initial_retry_delay_usec_(initial_retry_delay_usec) {} ConstantAuthProvider(const Json::Value& json, Env* env) - : ConstantAuthProvider(json, absl::make_unique(), env, + : ConstantAuthProvider(json, tensorflow::MakeUnique(), env, kInitialRetryDelayUsec) {} ~ConstantAuthProvider() override {} -- 2.7.4