Skip to content

Commit

Permalink
Remove unnecessary include of bind_objc_block.h
Browse files Browse the repository at this point in the history
The file base/mac/bind_objc_block.h only expose base::BindBlock
(and base::BindBlockArc) templated method. If the method is not
used, then the include is unnecessary and can be removed.

Automated using the following command:

  for file in $(git grep -l base/mac/bind_objc_block.h); do
    if ! grep -q BindBlock $file; then
      sed -i '' -e '/base\/mac\/bind_objc_block.h/d' $file
    fi
  done

Bug: none
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I6c076782dae5690400f8f2f6efa7eddc9f21d884
Reviewed-on: https://chromium-review.googlesource.com/1018486
Reviewed-by: Eugene But <eugenebut@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#552034}
  • Loading branch information
sdefresne authored and Commit Bot committed Apr 19, 2018
1 parent 6ffaac8 commit b530c5c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion ios/net/crn_http_protocol_handler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#include "base/command_line.h"
#include "base/logging.h"
#include "base/mac/bind_objc_block.h"
#include "base/mac/foundation_util.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
Expand Down
1 change: 0 additions & 1 deletion ios/web/navigation/navigation_manager_impl_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <string>

#include "base/logging.h"
#include "base/mac/bind_objc_block.h"
#include "base/strings/sys_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#import "ios/web/navigation/crw_session_controller+private_constructors.h"
Expand Down
1 change: 0 additions & 1 deletion ios/web/navigation/window_location_inttest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import "base/mac/bind_objc_block.h"
#include "base/mac/foundation_util.h"
#include "base/memory/ptr_util.h"
#import "base/strings/sys_string_conversions.h"
Expand Down
1 change: 0 additions & 1 deletion ios/web/net/crw_cert_verification_controller_unittest.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

#import "ios/web/net/crw_cert_verification_controller.h"

#import "base/mac/bind_objc_block.h"
#include "base/mac/foundation_util.h"
#include "base/message_loop/message_loop.h"
#import "base/test/ios/wait_util.h"
Expand Down
1 change: 0 additions & 1 deletion ios/web/public/test/earl_grey/web_view_matchers.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#import <UIKit/UIKit.h>
#import <WebKit/WebKit.h>

#import "base/mac/bind_objc_block.h"
#include "base/strings/stringprintf.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
Expand Down

0 comments on commit b530c5c

Please sign in to comment.