From 2e0014b0bc640f369d64d623ab9aeaba9507cc65 Mon Sep 17 00:00:00 2001 From: Sebastien Marchand Date: Sat, 26 Jan 2019 01:26:11 +0900 Subject: Include base/bind.h in the files that use it (in //component). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gab/Francois, I've used your refactoring script for this, the rule is: matches = re.compile(r'(\n *[^/\n][^/\n]*base::Bind(Once|Repeating)?\b[^*])', re.DOTALL).findall(content) if not matches: return False updated_content = refactor_lib.AddInclude(file_path, content, "base/bind.h") if updated_content == content: return False # Write updated file refactor_lib.WriteFile(file_path, updated_content) TBR=fdoray@chromium.org Change-Id: I5c6805a75e4e11d0d30bf7dd62fb49963f922acb Reviewed-on: https://chromium-review.googlesource.com/c/1437062 Reviewed-by: Sébastien Marchand Reviewed-by: François Doray Commit-Queue: Sébastien Marchand Cr-Commit-Position: refs/heads/master@{#626093} CrOS-Libchrome-Original-Commit: 53801a30c6430a817f484b8da6cf18f2d3b9f062 --- components/policy/core/common/policy_scheduler.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'components') diff --git a/components/policy/core/common/policy_scheduler.cc b/components/policy/core/common/policy_scheduler.cc index 4c8d67db50..e57bc3f0a2 100644 --- a/components/policy/core/common/policy_scheduler.cc +++ b/components/policy/core/common/policy_scheduler.cc @@ -4,6 +4,7 @@ #include "components/policy/core/common/policy_scheduler.h" +#include "base/bind.h" #include "base/threading/thread_task_runner_handle.h" namespace policy { -- cgit v1.2.3