Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: content/browser/android/android_startup_observer.cc

Issue 19957002: Run the later parts of startup as UI thread tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // TODO: Insert description here. (generated by aberent)
2
3 #include "android_startup_observer.h"
4
5 #include "jni/StartupObserver_jni.h"
6
7 namespace content {
8
9 AndroidStartupObserver::AndroidStartupObserver(jobject java_observer)
10 : java_observer_(java_observer) {}
11
12 void AndroidStartupObserver::AllTasksRun() {
13 JNIEnv* env = base::android::AttachCurrentThread();
14 Java_StartupObserver_allTasksRun(env, java_observer_);
15 }
16
17 bool AndroidStartupObserver::RegisterStartupObserver(JNIEnv* env) {
18 return RegisterNativesImpl(env);
19 }
20
21 AndroidStartupObserver::~AndroidStartupObserver() {
22 JNIEnv* env = base::android::AttachCurrentThread();
23 env->DeleteGlobalRef(java_observer_);
24 }
25
26 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698