• Sebastien Marchand's avatar
    Include base/bind.h in the files that use it (in //content). · f8cbfab4
    Sebastien Marchand authored
    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)
    
    TBR=gab@chromium.org
    
    Change-Id: I6cca9dff7fa4937fd7accdc57fe774674f6c147b
    Reviewed-on: https://chromium-review.googlesource.com/c/1437100
    Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
    Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#626088}
    f8cbfab4
byte_stream_input_stream.cc 2 KB