Skip to content

Commit

Permalink
Remove base::NonThreadSafe now that all users are gone!!
Browse files Browse the repository at this point in the history
And get rid of the few already unused includes of non_thread_safe.h

BUG=676387
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

TBR=gab@chromium.org (for unused includes)
TBR=thestig@chromium.org (for removing unused NonThreadSafe)

Review-Url: https://codereview.chromium.org/2921903003
Cr-Commit-Position: refs/heads/master@{#477305}
  • Loading branch information
gab authored and Commit Bot committed Jun 6, 2017
1 parent a6215bc commit c64944c
Show file tree
Hide file tree
Showing 25 changed files with 4 additions and 290 deletions.
8 changes: 0 additions & 8 deletions PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,14 +330,6 @@
True,
(),
),
(
'base::NonThreadSafe',
(
'base::NonThreadSafe is deprecated.',
),
True,
(),
),
(
'base::SequenceChecker',
(
Expand Down
4 changes: 0 additions & 4 deletions base/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -869,9 +869,6 @@ component("base") {
"third_party/nspr/prtime.h",
"third_party/superfasthash/superfasthash.c",
"third_party/valgrind/memcheck.h",
"threading/non_thread_safe.h",
"threading/non_thread_safe_impl.cc",
"threading/non_thread_safe_impl.h",
"threading/platform_thread.h",
"threading/platform_thread_android.cc",
"threading/platform_thread_internal_posix.cc",
Expand Down Expand Up @@ -2190,7 +2187,6 @@ test("base_unittests") {
"test/test_reg_util_win_unittest.cc",
"test/trace_event_analyzer_unittest.cc",
"test/user_action_tester_unittest.cc",
"threading/non_thread_safe_unittest.cc",
"threading/platform_thread_unittest.cc",
"threading/post_task_and_reply_impl_unittest.cc",
"threading/sequenced_task_runner_handle_unittest.cc",
Expand Down
1 change: 0 additions & 1 deletion base/ios/weak_nsobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/threading/non_thread_safe.h"
#include "base/threading/thread_checker.h"

// WeakNSObject<> is patterned after scoped_nsobject<>, but instead of
Expand Down
45 changes: 0 additions & 45 deletions base/threading/non_thread_safe.h

This file was deleted.

23 changes: 0 additions & 23 deletions base/threading/non_thread_safe_impl.cc

This file was deleted.

39 changes: 0 additions & 39 deletions base/threading/non_thread_safe_impl.h

This file was deleted.

150 changes: 0 additions & 150 deletions base/threading/non_thread_safe_unittest.cc

This file was deleted.

6 changes: 3 additions & 3 deletions base/threading/thread_checker_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ class BASE_EXPORT ThreadCheckerImpl {
// TaskToken for which CalledOnValidThread() always returns true. This allows
// CalledOnValidThread() to return true when called multiple times from the
// same task, even if it's not running in a single-threaded context itself
// (allowing usage of ThreadChecker/NonThreadSafe objects on the stack in the
// scope of one-off tasks). Note: CalledOnValidThread() may return true even
// if the current TaskToken is not equal to this.
// (allowing usage of ThreadChecker objects on the stack in the scope of one-
// off tasks). Note: CalledOnValidThread() may return true even if the current
// TaskToken is not equal to this.
mutable TaskToken task_token_;

// SequenceToken for which CalledOnValidThread() may return true. Used to
Expand Down
1 change: 0 additions & 1 deletion chrome/browser/printing/print_job_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/synchronization/lock.h"
#include "base/threading/non_thread_safe.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"

Expand Down
1 change: 0 additions & 1 deletion chrome/test/base/in_process_browser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/test_file_util.h"
#include "base/threading/non_thread_safe.h"
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
#include "chrome/browser/after_startup_task_utils.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "base/optional.h"
#include "base/scoped_observer.h"
#include "base/supports_user_data.h"
#include "base/threading/non_thread_safe.h"
#include "components/autofill/core/browser/webdata/autofill_change.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service_observer.h"
#include "components/sync/model/metadata_change_list.h"
Expand Down
1 change: 0 additions & 1 deletion components/invalidation/impl/sync_system_resources.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/non_thread_safe.h"
#include "base/values.h"
#include "components/invalidation/impl/state_writer.h"
#include "components/invalidation/public/invalidation_export.h"
Expand Down
1 change: 0 additions & 1 deletion components/sync/driver/sync_stopped_reporter_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/test/scoped_mock_time_message_loop_task_runner.h"
#include "base/threading/non_thread_safe.h"
#include "components/sync/protocol/sync.pb.h"
#include "net/http/http_status_code.h"
#include "net/url_request/test_url_fetcher_factory.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "base/observer_list.h"
#include "base/strings/string_util.h"
#include "base/synchronization/lock.h"
#include "base/threading/non_thread_safe.h"
#include "base/threading/thread_checker.h"
#include "components/sync/base/cancelation_observer.h"
#include "components/sync/syncable/syncable_id.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_

#include "base/macros.h"
#include "base/threading/non_thread_safe.h"
#include "build/build_config.h"
#include "cc/output/output_surface.h"
#include "content/common/content_export.h"
Expand Down
1 change: 0 additions & 1 deletion content/public/browser/ssl_host_state_delegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

#include "base/callback_forward.h"
#include "base/memory/ref_counted.h"
#include "base/threading/non_thread_safe.h"
#include "content/common/content_export.h"
#include "net/cert/x509_certificate.h"

Expand Down
1 change: 0 additions & 1 deletion media/cast/net/pacing/paced_sender.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/threading/non_thread_safe.h"
#include "base/time/default_tick_clock.h"
#include "base/time/tick_clock.h"
#include "base/time/time.h"
Expand Down
1 change: 0 additions & 1 deletion media/gpu/dxva_video_decode_accelerator_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "base/memory/linked_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/synchronization/lock.h"
#include "base/threading/non_thread_safe.h"
#include "base/threading/thread.h"
#include "base/win/scoped_comptr.h"
#include "gpu/command_buffer/service/gpu_preferences.h"
Expand Down
Loading

0 comments on commit c64944c

Please sign in to comment.