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 using base::android::JavaParamRef; |
| 11 |
10 namespace android { | 12 namespace android { |
11 | 13 |
12 class AfterStartupTaskUtilsJNI { | 14 class AfterStartupTaskUtilsJNI { |
13 public: | 15 public: |
14 static void SetBrowserStartupIsComplete() { | 16 static void SetBrowserStartupIsComplete() { |
15 AfterStartupTaskUtils::SetBrowserStartupIsComplete(); | 17 AfterStartupTaskUtils::SetBrowserStartupIsComplete(); |
16 } | 18 } |
17 }; | 19 }; |
18 | 20 |
19 } // android | 21 } // android |
20 | 22 |
21 static void SetStartupComplete(JNIEnv* env, const JavaParamRef<jclass>& obj) { | 23 static void SetStartupComplete(JNIEnv* env, const JavaParamRef<jclass>& obj) { |
22 android::AfterStartupTaskUtilsJNI::SetBrowserStartupIsComplete(); | 24 android::AfterStartupTaskUtilsJNI::SetBrowserStartupIsComplete(); |
23 } | 25 } |
24 | 26 |
25 bool RegisterAfterStartupTaskUtilsJNI(JNIEnv* env) { | 27 bool RegisterAfterStartupTaskUtilsJNI(JNIEnv* env) { |
26 return RegisterNativesImpl(env); | 28 return RegisterNativesImpl(env); |
27 } | 29 } |
OLD | NEW |