diff options
author | Sebastien Marchand <sebmarchand@chromium.org> | 2019-01-26 01:26:11 +0900 |
---|---|---|
committer | Qijiang Fan <fqj@google.com> | 2020-06-05 11:52:06 +0900 |
commit | 2e0014b0bc640f369d64d623ab9aeaba9507cc65 (patch) | |
tree | 70389c398fd7f5a78d465f3a63fbe816a5c92253 /components | |
parent | 7922382a54d2e4bc3a8e13268e99d615f081916a (diff) | |
download | libchrome-2e0014b0bc640f369d64d623ab9aeaba9507cc65.tar.gz |
Include base/bind.h in the files that use it (in //component).
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 <sebmarchand@chromium.org>
Reviewed-by: François Doray <fdoray@chromium.org>
Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
Cr-Commit-Position: refs/heads/master@{#626093}
CrOS-Libchrome-Original-Commit: 53801a30c6430a817f484b8da6cf18f2d3b9f062
Diffstat (limited to 'components')
-rw-r--r-- | components/policy/core/common/policy_scheduler.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |