OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.app.Activity; | 7 import android.app.Activity; |
8 import android.content.Context; | 8 import android.content.Context; |
9 import android.content.Intent; | 9 import android.content.Intent; |
10 import android.view.View; | 10 import android.view.View; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 /** | 199 /** |
200 * Performs the deferred startup task initialization. | 200 * Performs the deferred startup task initialization. |
201 */ | 201 */ |
202 protected void handleDeferredStartupTasksInitialization() { | 202 protected void handleDeferredStartupTasksInitialization() { |
203 final ChromeApplication application = | 203 final ChromeApplication application = |
204 (ChromeApplication) ContextUtils.getApplicationContext(); | 204 (ChromeApplication) ContextUtils.getApplicationContext(); |
205 | 205 |
206 DeferredStartupHandler.getInstance().addDeferredTask(new Runnable() { | 206 DeferredStartupHandler.getInstance().addDeferredTask(new Runnable() { |
207 @Override | 207 @Override |
208 public void run() { | 208 public void run() { |
209 ForcedSigninProcessor.start(application); | 209 ForcedSigninProcessor.start(application, null); |
210 AccountsChangedReceiver.addObserver( | 210 AccountsChangedReceiver.addObserver( |
211 new AccountsChangedReceiver.AccountsChangedObserver() { | 211 new AccountsChangedReceiver.AccountsChangedObserver() { |
212 @Override | 212 @Override |
213 public void onAccountsChanged(Context context, Inten
t intent) { | 213 public void onAccountsChanged(Context context, Inten
t intent) { |
214 ThreadUtils.runOnUiThread(new Runnable() { | 214 ThreadUtils.runOnUiThread(new Runnable() { |
215 @Override | 215 @Override |
216 public void run() { | 216 public void run() { |
217 ForcedSigninProcessor.start(application)
; | 217 ForcedSigninProcessor.start(application,
null); |
218 } | 218 } |
219 }); | 219 }); |
220 } | 220 } |
221 }); | 221 }); |
222 } | 222 } |
223 }); | 223 }); |
224 | 224 |
225 DeferredStartupHandler.getInstance().addDeferredTask(new Runnable() { | 225 DeferredStartupHandler.getInstance().addDeferredTask(new Runnable() { |
226 @Override | 226 @Override |
227 public void run() { | 227 public void run() { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 }); | 259 }); |
260 | 260 |
261 DeferredStartupHandler.getInstance().addDeferredTask(new Runnable() { | 261 DeferredStartupHandler.getInstance().addDeferredTask(new Runnable() { |
262 @Override | 262 @Override |
263 public void run() { | 263 public void run() { |
264 ChromeWebApkHost.initCanUseGooglePlayToInstallWebApk(); | 264 ChromeWebApkHost.initCanUseGooglePlayToInstallWebApk(); |
265 } | 265 } |
266 }); | 266 }); |
267 } | 267 } |
268 } | 268 } |
OLD | NEW |