diff options
author | Brennan Saeta <saeta@google.com> | 2018-06-01 18:00:43 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-06-01 18:03:29 -0700 |
commit | b33ba9a8e7e20e4b2378937204fe74af69982906 (patch) | |
tree | b426203b644dcfbbb014c5b0f6a9174192707876 /tensorflow/contrib/cloud | |
parent | 3dd460bb419776e6a4804843eec98e4bf14fdcdd (diff) |
Remove use of absl::make_unique
absl is not yet ready for use by open source TensorFlow. :-(
PiperOrigin-RevId: 198952953
Diffstat (limited to 'tensorflow/contrib/cloud')
-rw-r--r-- | tensorflow/contrib/cloud/kernels/gcs_config_ops.cc | 6 |
1 files 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 ef4998212e..648a219fb8 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<ConstantAuthProvider>(json, ctx->env()); + auto provider = + tensorflow::MakeUnique<ConstantAuthProvider>(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<OAuthClient>(), env, + : ConstantAuthProvider(json, tensorflow::MakeUnique<OAuthClient>(), env, kInitialRetryDelayUsec) {} ~ConstantAuthProvider() override {} |