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

Side by Side Diff: content/browser/browser_startup_configuration.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: Run the later parts of startup as UI thread tasks - respond to Yaron's and jam's comments Created 7 years, 4 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 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/browser_startup_configuration.h"
6
7 #if defined(OS_ANDROID)
8 #include "base/android/jni_android.h"
9 #include "jni/BrowserStartupConfiguration_jni.h"
10 #endif
11
12 namespace content {
13
14 bool BrowserMayStartAsynchronously() {
15 #if defined(OS_ANDROID)
16 JNIEnv* env = base::android::AttachCurrentThread();
17 return Java_BrowserStartupConfiguration_browserMayStartAsynchonously(env);
18 #else
19 return false;
20 #endif
21 }
22
23 void BrowserStartupComplete(int result) {
24 #if defined(OS_ANDROID)
25 JNIEnv* env = base::android::AttachCurrentThread();
26 Java_BrowserStartupConfiguration_browserStartupComplete(env, result);
27 #endif
28 }
29
30 #if defined(OS_ANDROID)
31 bool RegisterBrowserStartupConfiguration(JNIEnv* env) {
32 return RegisterNativesImpl(env);
33 }
34 #endif
35 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698