scoped_ignore_content_verifier_for_test.cc 614 B

12345678910111213141516171819
  1. // Copyright 2016 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 file.
  4. #include "extensions/browser/scoped_ignore_content_verifier_for_test.h"
  5. #include "extensions/browser/content_verify_job.h"
  6. namespace extensions {
  7. ScopedIgnoreContentVerifierForTest::ScopedIgnoreContentVerifierForTest() {
  8. ContentVerifyJob::SetIgnoreVerificationForTests(true);
  9. }
  10. ScopedIgnoreContentVerifierForTest::~ScopedIgnoreContentVerifierForTest() {
  11. ContentVerifyJob::SetIgnoreVerificationForTests(false);
  12. }
  13. } // namespace extensions