commit | f1349f5aee38c2c1e6c488a1a718fb67850e26e6 | [log] [tgz] |
---|---|---|
author | Sebastien Marchand <[email protected]> | Fri Jan 25 03:16:41 2019 |
committer | Sébastien Marchand <[email protected]> | Fri Jan 25 03:16:41 2019 |
tree | 6a70cf9a648e53e45e71803f9e437896787131ff | |
parent | fcfd409ca96868f629c231e49f2df839f94fb89d [diff] [blame] |
Include base/bind.h in the files that use it (in //chrome). Gab, 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) [email protected] Change-Id: Ifd89fb054ff5079794f71da0d2fea72ab938ac2d Reviewed-on: https://chromium-review.googlesource.com/c/1435628 Reviewed-by: Sébastien Marchand <[email protected]> Reviewed-by: Gabriel Charette <[email protected]> Cr-Commit-Position: refs/heads/master@{#625972}
diff --git a/chrome/browser/extensions/navigation_observer.cc b/chrome/browser/extensions/navigation_observer.cc index 1ca88a7..de82d8c 100644 --- a/chrome/browser/extensions/navigation_observer.cc +++ b/chrome/browser/extensions/navigation_observer.cc
@@ -4,6 +4,7 @@ #include "chrome/browser/extensions/navigation_observer.h" +#include "base/bind.h" #include "chrome/browser/extensions/extension_service.h" #include "chrome/browser/profiles/profile.h" #include "content/public/browser/navigation_controller.h"