From 01d891fa0790950549c7bedb34edf869827a372e Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Thu, 31 May 2018 17:03:37 +0000 Subject: [PATCH] CORS legacy: add missing string include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cors_legacy.h file includes declarations using std::string, but it is not declared due to missing #include . Also drop unneeded declarations in .cpp file. Change-Id: I00df799f84a6c3530c2f12f1e52d24c7d9bd6bfd Reviewed-on: https://chromium-review.googlesource.com/1080707 Reviewed-by: Tom Sepez Commit-Queue: José Dapena Paz Cr-Commit-Position: refs/heads/master@{#563282} --- services/network/public/cpp/cors/cors_legacy.cc | 2 -- services/network/public/cpp/cors/cors_legacy.h | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/services/network/public/cpp/cors/cors_legacy.cc b/services/network/public/cpp/cors/cors_legacy.cc index 8f32ac3be64e..f01af63619b5 100644 --- a/services/network/public/cpp/cors/cors_legacy.cc +++ b/services/network/public/cpp/cors/cors_legacy.cc @@ -5,8 +5,6 @@ #include "services/network/public/cpp/cors/cors_legacy.h" #include -#include -#include #include "url/gurl.h" #include "url/url_util.h" diff --git a/services/network/public/cpp/cors/cors_legacy.h b/services/network/public/cpp/cors/cors_legacy.h index d2cdf026ca3a..dc9295a92c47 100644 --- a/services/network/public/cpp/cors/cors_legacy.h +++ b/services/network/public/cpp/cors/cors_legacy.h @@ -5,6 +5,7 @@ #ifndef SERVICES_NETWORK_PUBLIC_CPP_CORS_CORS_LEGACY_H_ #define SERVICES_NETWORK_PUBLIC_CPP_CORS_CORS_LEGACY_H_ +#include #include #include "base/component_export.h" -- 2.17.1