Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2015 The Chromium Authors |
michaeln | 68bf4a8e | 2015-08-11 01:37:31 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
michaeln | 68bf4a8e | 2015-08-11 01:37:31 | [diff] [blame] | 5 | #include "chrome/browser/after_startup_task_utils.h" |
Andrew Grieve | ecb885bb | 2024-05-29 18:14:19 | [diff] [blame] | 6 | |
| 7 | // Must come after all headers that specialize FromJniType() / ToJniType(). |
Michael Thiessen | 8b2f7cb | 2021-08-11 21:56:13 | [diff] [blame] | 8 | #include "chrome/browser/util/jni_headers/AfterStartupTaskUtils_jni.h" |
michaeln | 68bf4a8e | 2015-08-11 01:37:31 | [diff] [blame] | 9 | |
Sam Maier | 7fe12c1 | 2024-01-26 19:22:43 | [diff] [blame] | 10 | using jni_zero::JavaParamRef; |
torne | 8656011 | 2016-08-04 15:59:04 | [diff] [blame] | 11 | |
michaeln | 68bf4a8e | 2015-08-11 01:37:31 | [diff] [blame] | 12 | namespace android { |
| 13 | |
| 14 | class AfterStartupTaskUtilsJNI { |
| 15 | public: |
| 16 | static void SetBrowserStartupIsComplete() { |
| 17 | AfterStartupTaskUtils::SetBrowserStartupIsComplete(); |
| 18 | } |
| 19 | }; |
| 20 | |
| 21 | } // android |
| 22 | |
Aiden Benner | c99e905 | 2018-11-30 20:50:50 | [diff] [blame] | 23 | static void JNI_AfterStartupTaskUtils_SetStartupComplete(JNIEnv* env) { |
michaeln | 68bf4a8e | 2015-08-11 01:37:31 | [diff] [blame] | 24 | android::AfterStartupTaskUtilsJNI::SetBrowserStartupIsComplete(); |
| 25 | } |