chromium/content/public/test/android/ui_thread_scheduler_test_utils.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/android/jni_android.h"
#include "content/browser/browser_main_loop.h"

// Must come after all headers that specialize FromJniType() / ToJniType().
#include "content/public/test/android/content_test_jni/UiThreadSchedulerTestUtils_jni.h"

namespace content {

void JNI_UiThreadSchedulerTestUtils_PostBrowserMainLoopStartupTasks(
    JNIEnv* env,
    jboolean enabled) {
  BrowserMainLoop::EnableStartupTasks(enabled);
}

}  // namespace content