locker.cc 505 B

1234567891011121314151617
  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. #include "shell/common/process_util.h"
  6. namespace gin_helper {
  7. Locker::Locker(v8::Isolate* isolate)
  8. : locker_{electron::IsBrowserProcess() ? new v8::Locker{isolate}
  9. : nullptr} {}
  10. Locker::~Locker() = default;
  11. } // namespace gin_helper