commit | 68c0798d46c47105ffdbf40c58bb63153a148116 | [log] [tgz] |
---|---|---|
author | Daniel Hosseinian <[email protected]> | Fri Apr 16 08:16:07 2021 |
committer | Chromium LUCI CQ <[email protected]> | Fri Apr 16 08:16:07 2021 |
tree | a2209591249ec5c029b79cdaf4e592dc3da514d6 | |
parent | a8009f8f719dfdf6af6d056471449ca43fa52fe0 [diff] [blame] |
[gin] Replace DISALLOW_* macros Replace the deprecated macros with explicit deletions. Also replace once instance in //extensions/ due to a IWYU issue. Bug: 1010217 Change-Id: I20d8b30dc5966b0cc7bda1fc27925469aeef03f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2829945 Commit-Queue: Jochen Eisinger <[email protected]> Auto-Submit: Daniel Hosseinian <[email protected]> Reviewed-by: Jochen Eisinger <[email protected]> Cr-Commit-Position: refs/heads/master@{#873232}
diff --git a/gin/try_catch.h b/gin/try_catch.h index a1daaf1c..c0e1dea 100644 --- a/gin/try_catch.h +++ b/gin/try_catch.h
@@ -7,7 +7,6 @@ #include <string> -#include "base/macros.h" #include "gin/gin_export.h" #include "v8/include/v8.h" @@ -17,6 +16,8 @@ class GIN_EXPORT TryCatch { public: explicit TryCatch(v8::Isolate* isolate); + TryCatch(const TryCatch&) = delete; + TryCatch& operator=(const TryCatch&) = delete; ~TryCatch(); bool HasCaught(); @@ -25,8 +26,6 @@ private: v8::Isolate* isolate_; v8::TryCatch try_catch_; - - DISALLOW_COPY_AND_ASSIGN(TryCatch); }; } // namespace gin