OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/after_startup_task_utils_android.h" | 5 #include "chrome/browser/after_startup_task_utils_android.h" |
6 | 6 |
7 #include "chrome/browser/after_startup_task_utils.h" | 7 #include "chrome/browser/after_startup_task_utils.h" |
8 #include "jni/AfterStartupTaskUtils_jni.h" | 8 #include "jni/AfterStartupTaskUtils_jni.h" |
9 | 9 |
10 namespace android { | 10 namespace android { |
11 | 11 |
12 class AfterStartupTaskUtilsJNI { | 12 class AfterStartupTaskUtilsJNI { |
13 public: | 13 public: |
14 static void SetBrowserStartupIsComplete() { | 14 static void SetBrowserStartupIsComplete() { |
15 AfterStartupTaskUtils::SetBrowserStartupIsComplete(); | 15 AfterStartupTaskUtils::SetBrowserStartupIsComplete(); |
16 } | 16 } |
17 }; | 17 }; |
18 | 18 |
19 } // android | 19 } // android |
20 | 20 |
21 static void SetStartupComplete(JNIEnv* env, jclass obj) { | 21 static void SetStartupComplete(JNIEnv* env, const JavaParamRef<jclass>& obj) { |
22 android::AfterStartupTaskUtilsJNI::SetBrowserStartupIsComplete(); | 22 android::AfterStartupTaskUtilsJNI::SetBrowserStartupIsComplete(); |
23 } | 23 } |
24 | 24 |
25 bool RegisterAfterStartupTaskUtilsJNI(JNIEnv* env) { | 25 bool RegisterAfterStartupTaskUtilsJNI(JNIEnv* env) { |
26 return RegisterNativesImpl(env); | 26 return RegisterNativesImpl(env); |
27 } | 27 } |
OLD | NEW |