locker.cc 422 B

12345678910111213141516
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE.chromium file.
  4. #include "shell/common/gin_helper/locker.h"
  5. namespace gin_helper {
  6. Locker::Locker(v8::Isolate* isolate) {
  7. if (IsBrowserProcess())
  8. locker_ = std::make_unique<v8::Locker>(isolate);
  9. }
  10. Locker::~Locker() = default;
  11. } // namespace gin_helper