| 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 package org.chromium.chrome.browser.init; | 5 package org.chromium.chrome.browser.init; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.app.Activity; | 9 import android.app.Activity; |
| 10 import android.content.Context; | 10 import android.content.Context; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 } | 271 } |
| 272 | 272 |
| 273 private void abortLaunch() { | 273 private void abortLaunch() { |
| 274 super.onCreate(null); | 274 super.onCreate(null); |
| 275 ApiCompatibilityUtils.finishAndRemoveTask(this); | 275 ApiCompatibilityUtils.finishAndRemoveTask(this); |
| 276 } | 276 } |
| 277 | 277 |
| 278 /** | 278 /** |
| 279 * Call to begin loading the library, if it was delayed. | 279 * Call to begin loading the library, if it was delayed. |
| 280 */ | 280 */ |
| 281 protected void beginLoadingLibrary() { | 281 protected void startNativeInitialization() { |
| 282 assert shouldDelayBrowserStartup(); | 282 assert shouldDelayBrowserStartup(); |
| 283 ChromeBrowserInitializer.getInstance(this).handlePreNativeStartup(this); | 283 ChromeBrowserInitializer.getInstance(this).handlePreNativeStartup(this); |
| 284 } | 284 } |
| 285 | 285 |
| 286 /** | 286 /** |
| 287 * Creates an {@link ActivityWindowAndroid} to delegate calls to, if the Act
ivity requires it. | 287 * Creates an {@link ActivityWindowAndroid} to delegate calls to, if the Act
ivity requires it. |
| 288 */ | 288 */ |
| 289 @Nullable | 289 @Nullable |
| 290 protected ActivityWindowAndroid createWindowAndroid() { | 290 protected ActivityWindowAndroid createWindowAndroid() { |
| 291 return null; | 291 return null; |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 getDecorView().setVisibility(View.GONE); | 649 getDecorView().setVisibility(View.GONE); |
| 650 } | 650 } |
| 651 getViewTreeObserver().removeOnPreDrawListener(mPreDrawLi
stener); | 651 getViewTreeObserver().removeOnPreDrawListener(mPreDrawLi
stener); |
| 652 } | 652 } |
| 653 }); | 653 }); |
| 654 return true; | 654 return true; |
| 655 } | 655 } |
| 656 }; | 656 }; |
| 657 } | 657 } |
| 658 } | 658 } |
| OLD | NEW |